Skip to content
Snippets Groups Projects
Commit deb524ed authored by Andrzej Lisak's avatar Andrzej Lisak
Browse files

[ABW]:

Changed how error cases are handled (when error is unexpected or expected error is not there whole response is dumped) - some required regeneration of original patterns
Some patterns for tests that still don't work regenerated to fix key order
Updated comments for problematic tests (research results)
Some new bridge_api tests marked as passing
Order partially fixed in patterns for tests where that order depends on pending payout
parent a7581c33
No related branches found
No related tags found
1 merge request!41Various updates for bridge and condenser api patterns
Showing
with 5716 additions and 5705 deletions
Error detected in response: Invalid parameters
\ No newline at end of file
{
"code": -32602,
"data": "community not found",
"message": "Invalid parameters"
}
null
\ No newline at end of file
{
"code": -32602,
"data": "community not found",
"message": "Invalid parameters"
}
null
\ No newline at end of file
{}
null
\ No newline at end of file
{}
null
\ No newline at end of file
{
"code": -32602,
"data": "post '@gtg/not_existing_permlink' does not exist",
"message": "Invalid parameters"
}
null
\ No newline at end of file
{
"code": -32602,
"data": "account 'not.existing' does not exist",
"message": "Invalid parameters"
}
......@@ -81,7 +81,7 @@
"created": "2016-09-12T11:49:18",
"curator_payout_value": "0.000 HBD",
"depth": 1,
"json_metadata": "{\"tags\":[\"test\"],\"image\":[\"http:\\/\\/i.imgur.com\\/OG66bhF.jpg\"]}",
"json_metadata": "{\"tags\":[\"test\"],\"image\":[\"http://i.imgur.com/OG66bhF.jpg\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-12T13:26:51",
"max_accepted_payout": "1000000.000 HBD",
......@@ -137,6 +137,82 @@
"total_payout_value": "0.000 HBD",
"url": "/test/@derekareith/page-view-counter-test-post#@bitcoiner/re-derekareith-re-bitcoiner-re-derekareith-re-boomer-re-bitcoiner-re-derekareith-page-view-counter-test-post-20160913t223741801z"
},
{
"active_votes": [
{
"percent": "5000",
"reputation": 0,
"rshares": "77095774656",
"voter": "derekareith"
}
],
"author": "bitcoiner",
"author_reputation": 0,
"beneficiaries": [],
"body": "Oh haha. Yes, I haven't signed a block for more than 24 hours!",
"body_length": 62,
"cashout_time": "2016-10-15T00:25:18",
"category": "test",
"children": 2,
"created": "2016-09-13T20:29:33",
"curator_payout_value": "0.000 HBD",
"depth": 4,
"json_metadata": "{\"tags\":[\"test\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-13T20:29:33",
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 77095774656,
"parent_author": "derekareith",
"parent_permlink": "re-boomer-re-bitcoiner-re-derekareith-page-view-counter-test-post-20160913t202607590z",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "re-derekareith-re-boomer-re-bitcoiner-re-derekareith-page-view-counter-test-post-20160913t202935838z",
"post_id": 943539,
"promoted": "0.000 HBD",
"replies": [],
"root_title": "Page View Counter [Test Post]",
"title": "",
"total_payout_value": "0.000 HBD",
"url": "/test/@derekareith/page-view-counter-test-post#@bitcoiner/re-derekareith-re-boomer-re-bitcoiner-re-derekareith-page-view-counter-test-post-20160913t202935838z"
},
{
"active_votes": [
{
"percent": "5000",
"reputation": 0,
"rshares": "77095774656",
"voter": "derekareith"
}
],
"author": "bitcoiner",
"author_reputation": 0,
"beneficiaries": [],
"body": "All images get cached by img1.steemit.com.\nBut this will work with users of third party apps that view posts that don't use that caching server, like eSteem.",
"body_length": 157,
"cashout_time": "2016-10-15T00:25:18",
"category": "test",
"children": 5,
"created": "2016-09-13T20:23:15",
"curator_payout_value": "0.000 HBD",
"depth": 1,
"json_metadata": "{\"tags\":[\"test\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-13T20:23:15",
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 77095774656,
"parent_author": "derekareith",
"parent_permlink": "page-view-counter-test-post",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "re-derekareith-page-view-counter-test-post-20160913t202316437z",
"post_id": 943502,
"promoted": "0.000 HBD",
"replies": [],
"root_title": "Page View Counter [Test Post]",
"title": "",
"total_payout_value": "0.000 HBD",
"url": "/test/@derekareith/page-view-counter-test-post#@bitcoiner/re-derekareith-page-view-counter-test-post-20160913t202316437z"
},
{
"active_votes": [
{
......@@ -219,7 +295,7 @@
"created": "2016-09-15T15:53:06",
"curator_payout_value": "0.000 HBD",
"depth": 2,
"json_metadata": "{\"tags\":[\"test\"],\"links\":[\"https:\\/\\/steemit.com\\/steemit\\/@achim86\\/html-commands-how-to-structure-your-texts-on-steemit-german-text-strukturierung\"]}",
"json_metadata": "{\"tags\":[\"test\"],\"links\":[\"https://steemit.com/steemit/@achim86/html-commands-how-to-structure-your-texts-on-steemit-german-text-strukturierung\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-15T17:05:36",
"max_accepted_payout": "1000000.000 HBD",
......@@ -237,6 +313,44 @@
"total_payout_value": "0.000 HBD",
"url": "/test/@achim86/test#@achim86/re-oaldamster-re-achim86-test-20160915t155303746z"
},
{
"active_votes": [
{
"percent": "3000",
"reputation": 0,
"rshares": "46263835410",
"voter": "derekareith"
}
],
"author": "freebornangel",
"author_reputation": 0,
"beneficiaries": [],
"body": "Http://minds.com/ottman has a pretty good counter set up.",
"body_length": 57,
"cashout_time": "2016-10-15T00:25:18",
"category": "test",
"children": 2,
"created": "2016-09-14T01:54:00",
"curator_payout_value": "0.000 HBD",
"depth": 1,
"json_metadata": "{\"tags\":[\"test\"],\"links\":[\"Http://minds.com/ottman\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-14T01:57:12",
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 46263835410,
"parent_author": "derekareith",
"parent_permlink": "page-view-counter-test-post",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "re-derekareith-page-view-counter-test-post-20160914t015352577z",
"post_id": 945943,
"promoted": "0.000 HBD",
"replies": [],
"root_title": "Page View Counter [Test Post]",
"title": "",
"total_payout_value": "0.000 HBD",
"url": "/test/@derekareith/page-view-counter-test-post#@freebornangel/re-derekareith-page-view-counter-test-post-20160914t015352577z"
},
{
"active_votes": [
{
......@@ -364,7 +478,7 @@
"created": "2016-09-13T22:25:12",
"curator_payout_value": "0.000 HBD",
"depth": 5,
"json_metadata": "{\"tags\":[\"test\"],\"links\":[\"https:\\/\\/steemd.com\\/test\\/@derekareith\\/page-view-counter-test-post\"]}",
"json_metadata": "{\"tags\":[\"test\"],\"links\":[\"https://steemd.com/test/@derekareith/page-view-counter-test-post\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-13T22:25:12",
"max_accepted_payout": "1000000.000 HBD",
......@@ -544,44 +658,6 @@
"total_payout_value": "0.000 HBD",
"url": "/test/@trogdor/this-is-a-test-to-see-if-i-have-been-targeted-by-a-spam-bot-army#@royaltiffany/re-trogdor-re-royaltiffany-re-trogdor-re-royaltiffany-re-trogdor-this-is-a-test-to-see-if-i-have-been-targeted-by-a-spam-bot-army-20160817t021331735z"
},
{
"active_votes": [
{
"percent": "5000",
"reputation": 0,
"rshares": "77095774656",
"voter": "derekareith"
}
],
"author": "bitcoiner",
"author_reputation": 0,
"beneficiaries": [],
"body": "Oh haha. Yes, I haven't signed a block for more than 24 hours!",
"body_length": 62,
"cashout_time": "2016-10-15T00:25:18",
"category": "test",
"children": 2,
"created": "2016-09-13T20:29:33",
"curator_payout_value": "0.000 HBD",
"depth": 4,
"json_metadata": "{\"tags\":[\"test\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-13T20:29:33",
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 77095774656,
"parent_author": "derekareith",
"parent_permlink": "re-boomer-re-bitcoiner-re-derekareith-page-view-counter-test-post-20160913t202607590z",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "re-derekareith-re-boomer-re-bitcoiner-re-derekareith-page-view-counter-test-post-20160913t202935838z",
"post_id": 943539,
"promoted": "0.000 HBD",
"replies": [],
"root_title": "Page View Counter [Test Post]",
"title": "",
"total_payout_value": "0.000 HBD",
"url": "/test/@derekareith/page-view-counter-test-post#@bitcoiner/re-derekareith-re-boomer-re-bitcoiner-re-derekareith-page-view-counter-test-post-20160913t202935838z"
},
{
"active_votes": [],
"author": "earnest",
......@@ -1032,7 +1108,7 @@
"created": "2016-09-11T12:21:27",
"curator_payout_value": "0.000 HBD",
"depth": 3,
"json_metadata": "{\"tags\":[\"test\"],\"image\":[\"https:\\/\\/img1.steemit.com\\/0x0\\/http:\\/\\/i64.tinypic.com\\/1zn8p6d.jpg\"]}",
"json_metadata": "{\"tags\":[\"test\"],\"image\":[\"https://img1.steemit.com/0x0/http://i64.tinypic.com/1zn8p6d.jpg\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-11T12:21:27",
"max_accepted_payout": "1000000.000 HBD",
......@@ -1063,7 +1139,7 @@
"created": "2016-09-11T09:16:27",
"curator_payout_value": "0.000 HBD",
"depth": 3,
"json_metadata": "{\"tags\":[\"test\"],\"image\":[\"https:\\/\\/img.youtube.com\\/vi\\/y43FolFlY78\\/0.jpg\"],\"links\":[\"https:\\/\\/www.youtube.com\\/watch?v=y43FolFlY78\"]}",
"json_metadata": "{\"tags\":[\"test\"],\"image\":[\"https://img.youtube.com/vi/y43FolFlY78/0.jpg\"],\"links\":[\"https://www.youtube.com/watch?v=y43FolFlY78\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-11T09:16:27",
"max_accepted_payout": "1000000.000 HBD",
......@@ -1577,6 +1653,44 @@
"total_payout_value": "0.000 HBD",
"url": "/test/@trogdor/this-is-a-test-to-see-if-i-have-been-targeted-by-a-spam-bot-army#@royaltiffany/re-trogdor-re-royaltiffany-re-trogdor-this-is-a-test-to-see-if-i-have-been-targeted-by-a-spam-bot-army-20160817t021026566z"
},
{
"active_votes": [
{
"percent": "10000",
"reputation": 0,
"rshares": "14714651186",
"voter": "hellokitty"
}
],
"author": "trogdor",
"author_reputation": 0,
"beneficiaries": [],
"body": "Looks like I caught the laonie swarm and two chinese bots. No wang yet, and no 800 spam votes yet...",
"body_length": 100,
"cashout_time": "2016-09-17T02:19:27",
"category": "test",
"children": 8,
"created": "2016-08-17T02:09:30",
"curator_payout_value": "0.000 HBD",
"depth": 2,
"json_metadata": "{\"tags\":[\"test\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-08-17T02:09:30",
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 14714651186,
"parent_author": "royaltiffany",
"parent_permlink": "re-trogdor-this-is-a-test-to-see-if-i-have-been-targeted-by-a-spam-bot-army-20160817t020602907z",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "re-royaltiffany-re-trogdor-this-is-a-test-to-see-if-i-have-been-targeted-by-a-spam-bot-army-20160817t020915512z",
"post_id": 635716,
"promoted": "0.000 HBD",
"replies": [],
"root_title": "this is a test to see if i have been targeted by a spam bot army",
"title": "",
"total_payout_value": "0.000 HBD",
"url": "/test/@trogdor/this-is-a-test-to-see-if-i-have-been-targeted-by-a-spam-bot-army#@trogdor/re-royaltiffany-re-trogdor-this-is-a-test-to-see-if-i-have-been-targeted-by-a-spam-bot-army-20160817t020915512z"
},
{
"active_votes": [
{
......@@ -1759,7 +1873,7 @@
"created": "2016-09-13T06:35:18",
"curator_payout_value": "0.000 HBD",
"depth": 2,
"json_metadata": "{\"tags\":[\"test\"],\"image\":[\"http:\\/\\/compass.microsoft.com\\/assets\\/ff\\/be\\/ffbe20a0-c36d-42dd-b710-b1ee6ee0981f.jpg?n=Compact%20Optical%20Mouse%20500.jpg\"]}",
"json_metadata": "{\"tags\":[\"test\"],\"image\":[\"http://compass.microsoft.com/assets/ff/be/ffbe20a0-c36d-42dd-b710-b1ee6ee0981f.jpg?n=Compact%20Optical%20Mouse%20500.jpg\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-13T06:35:18",
"max_accepted_payout": "1000000.000 HBD",
......@@ -2838,44 +2952,6 @@
"total_payout_value": "0.000 HBD",
"url": "/test/@steembaby/test-my-posts-disappeared#@steembaby/re-ibringawareness-re-steembaby-test-my-posts-disappeared-20160825t150259870z"
},
{
"active_votes": [
{
"percent": "10000",
"reputation": 0,
"rshares": "14714651186",
"voter": "hellokitty"
}
],
"author": "trogdor",
"author_reputation": 0,
"beneficiaries": [],
"body": "Looks like I caught the laonie swarm and two chinese bots. No wang yet, and no 800 spam votes yet...",
"body_length": 100,
"cashout_time": "2016-09-17T02:19:27",
"category": "test",
"children": 8,
"created": "2016-08-17T02:09:30",
"curator_payout_value": "0.000 HBD",
"depth": 2,
"json_metadata": "{\"tags\":[\"test\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-08-17T02:09:30",
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 14714651186,
"parent_author": "royaltiffany",
"parent_permlink": "re-trogdor-this-is-a-test-to-see-if-i-have-been-targeted-by-a-spam-bot-army-20160817t020602907z",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "re-royaltiffany-re-trogdor-this-is-a-test-to-see-if-i-have-been-targeted-by-a-spam-bot-army-20160817t020915512z",
"post_id": 635716,
"promoted": "0.000 HBD",
"replies": [],
"root_title": "this is a test to see if i have been targeted by a spam bot army",
"title": "",
"total_payout_value": "0.000 HBD",
"url": "/test/@trogdor/this-is-a-test-to-see-if-i-have-been-targeted-by-a-spam-bot-army#@trogdor/re-royaltiffany-re-trogdor-this-is-a-test-to-see-if-i-have-been-targeted-by-a-spam-bot-army-20160817t020915512z"
},
{
"active_votes": [],
"author": "rawnetics",
......@@ -3000,82 +3076,6 @@
"total_payout_value": "0.000 HBD",
"url": "/test/@derekareith/page-view-counter-test-post#@steemitqa/re-derekareith-page-view-counter-test-post-20160914t021242459z"
},
{
"active_votes": [
{
"percent": "3000",
"reputation": 0,
"rshares": "46263835410",
"voter": "derekareith"
}
],
"author": "freebornangel",
"author_reputation": 0,
"beneficiaries": [],
"body": "Http://minds.com/ottman has a pretty good counter set up.",
"body_length": 57,
"cashout_time": "2016-10-15T00:25:18",
"category": "test",
"children": 2,
"created": "2016-09-14T01:54:00",
"curator_payout_value": "0.000 HBD",
"depth": 1,
"json_metadata": "{\"tags\":[\"test\"],\"links\":[\"Http:\\/\\/minds.com\\/ottman\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-14T01:57:12",
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 46263835410,
"parent_author": "derekareith",
"parent_permlink": "page-view-counter-test-post",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "re-derekareith-page-view-counter-test-post-20160914t015352577z",
"post_id": 945943,
"promoted": "0.000 HBD",
"replies": [],
"root_title": "Page View Counter [Test Post]",
"title": "",
"total_payout_value": "0.000 HBD",
"url": "/test/@derekareith/page-view-counter-test-post#@freebornangel/re-derekareith-page-view-counter-test-post-20160914t015352577z"
},
{
"active_votes": [
{
"percent": "5000",
"reputation": 0,
"rshares": "77095774656",
"voter": "derekareith"
}
],
"author": "bitcoiner",
"author_reputation": 0,
"beneficiaries": [],
"body": "All images get cached by img1.steemit.com.\nBut this will work with users of third party apps that view posts that don't use that caching server, like eSteem.",
"body_length": 157,
"cashout_time": "2016-10-15T00:25:18",
"category": "test",
"children": 5,
"created": "2016-09-13T20:23:15",
"curator_payout_value": "0.000 HBD",
"depth": 1,
"json_metadata": "{\"tags\":[\"test\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-13T20:23:15",
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 77095774656,
"parent_author": "derekareith",
"parent_permlink": "page-view-counter-test-post",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "re-derekareith-page-view-counter-test-post-20160913t202316437z",
"post_id": 943502,
"promoted": "0.000 HBD",
"replies": [],
"root_title": "Page View Counter [Test Post]",
"title": "",
"total_payout_value": "0.000 HBD",
"url": "/test/@derekareith/page-view-counter-test-post#@bitcoiner/re-derekareith-page-view-counter-test-post-20160913t202316437z"
},
{
"active_votes": [
{
......@@ -3096,7 +3096,7 @@
"created": "2016-09-13T20:22:51",
"curator_payout_value": "0.000 HBD",
"depth": 1,
"json_metadata": "{\"tags\":[\"test\"],\"image\":[\"http:\\/\\/www.e-zeeinternet.com\\/count.php?page=1156943&style=blushdw&nbdigits=5\"],\"links\":[\"http:\\/\\/www.e-zeeinternet.com\\/\"]}",
"json_metadata": "{\"tags\":[\"test\"],\"image\":[\"http://www.e-zeeinternet.com/count.php?page=1156943&style=blushdw&nbdigits=5\"],\"links\":[\"http://www.e-zeeinternet.com/\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-13T20:22:51",
"max_accepted_payout": "1000000.000 HBD",
......@@ -3134,7 +3134,7 @@
"created": "2016-09-13T20:19:51",
"curator_payout_value": "0.000 HBD",
"depth": 1,
"json_metadata": "{\"tags\":[\"test\"],\"image\":[\"http:\\/\\/simplehitcounter.com\\/hit.php?uid=2165971&f=16777215&b=0\"],\"links\":[\"http:\\/\\/www.marcleaningservices.com\"]}",
"json_metadata": "{\"tags\":[\"test\"],\"image\":[\"http://simplehitcounter.com/hit.php?uid=2165971&f=16777215&b=0\"],\"links\":[\"http://www.marcleaningservices.com\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-13T20:20:15",
"max_accepted_payout": "1000000.000 HBD",
......@@ -3320,7 +3320,7 @@
"created": "2016-09-13T06:31:00",
"curator_payout_value": "0.000 HBD",
"depth": 1,
"json_metadata": "{\"tags\":[\"test\"],\"image\":[\"http:\\/\\/compass.microsoft.com\\/assets\\/ff\\/be\\/ffbe20a0-c36d-42dd-b710-b1ee6ee0981f.jpg?n=Compact%20Optical%20Mouse%20500.jpg\"]}",
"json_metadata": "{\"tags\":[\"test\"],\"image\":[\"http://compass.microsoft.com/assets/ff/be/ffbe20a0-c36d-42dd-b710-b1ee6ee0981f.jpg?n=Compact%20Optical%20Mouse%20500.jpg\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-13T06:33:45",
"max_accepted_payout": "1000000.000 HBD",
......
......@@ -1201,6 +1201,50 @@
"total_payout_value": "0.000 HBD",
"url": "/test/@derekareith/page-view-counter-test-post"
},
{
"active_votes": [
{
"percent": "10000",
"reputation": 0,
"rshares": "63736720",
"voter": "zionuziriel"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "55929928",
"voter": "uziriel"
}
],
"author": "zionuziriel",
"author_reputation": 0,
"beneficiaries": [],
"body": "<html>\n<p>Hello everyone :) Kindly upvote.<br>\n<br>\n-Test</p>\n</html>",
"body_length": 69,
"cashout_time": "2016-10-09T06:17:03",
"category": "test",
"children": 1,
"created": "2016-09-08T05:23:21",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"json_metadata": "{\"tags\":[\"test\",\"upvote\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-08T05:23:21",
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 69600101439,
"parent_author": "",
"parent_permlink": "test",
"pending_payout_value": "0.015 HBD",
"percent_hbd": 10000,
"permlink": "kindly-upvote",
"post_id": 889524,
"promoted": "0.000 HBD",
"replies": [],
"root_title": "KINDLY UPVOTE",
"title": "KINDLY UPVOTE",
"total_payout_value": "0.000 HBD",
"url": "/test/@zionuziriel/kindly-upvote"
},
{
"active_votes": [
{
......@@ -1471,50 +1515,6 @@
"total_payout_value": "0.000 HBD",
"url": "/test/@gregnie/test-again"
},
{
"active_votes": [
{
"percent": "10000",
"reputation": 0,
"rshares": "63736720",
"voter": "zionuziriel"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "55929928",
"voter": "uziriel"
}
],
"author": "zionuziriel",
"author_reputation": 0,
"beneficiaries": [],
"body": "<html>\n<p>Hello everyone :) Kindly upvote.<br>\n<br>\n-Test</p>\n</html>",
"body_length": 69,
"cashout_time": "2016-10-09T06:17:03",
"category": "test",
"children": 1,
"created": "2016-09-08T05:23:21",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"json_metadata": "{\"tags\":[\"test\",\"upvote\"]}",
"last_payout": "1969-12-31T23:59:59",
"last_update": "2016-09-08T05:23:21",
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 69600101439,
"parent_author": "",
"parent_permlink": "test",
"pending_payout_value": "0.015 HBD",
"percent_hbd": 10000,
"permlink": "kindly-upvote",
"post_id": 889524,
"promoted": "0.000 HBD",
"replies": [],
"root_title": "KINDLY UPVOTE",
"title": "KINDLY UPVOTE",
"total_payout_value": "0.000 HBD",
"url": "/test/@zionuziriel/kindly-upvote"
},
{
"active_votes": [
{
......
This diff is collapsed.
This diff is collapsed.
......@@ -46,16 +46,21 @@ def compare_response_with_pattern(response, method=None, directory=None, ignore_
response_json = remove_tag(response_json, ignore_tags)
error = response_json.get("error", None)
result = response_json.get("result", None)
if error_response:
result = error
if error is not None and not error_response:
msg = "Error detected in response: {}".format(error["message"])
save_raw(response_fname, msg)
save_json(response_fname, response_json)
raise PatternDiffException(msg)
if error is None and error_response:
msg = "Error expected but got result: {}".format(result)
save_json(response_fname, response_json)
raise PatternDiffException(msg)
if error_response:
result = error
if result is None:
msg = "Error detected in response: result is null, json object was expected"
save_raw(response_fname, msg)
save_json(response_fname, response_json)
raise PatternDiffException(msg)
import deepdiff
......
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