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 (30)
Showing
with 2821 additions and 73 deletions
......@@ -327,14 +327,6 @@
"type": "follow",
"url": "@majes"
},
{
"date": "2016-09-12T02:59:45",
"id": 21343655294898194,
"msg": "@vetvso followed you",
"score": 50,
"type": "follow",
"url": "@vetvso"
},
{
"date": "2016-09-14T12:28:09",
"id": 21337539261559687,
......@@ -727,14 +719,6 @@
"type": "follow",
"url": "@summonerrk"
},
{
"date": "2016-08-21T10:07:54",
"id": 21163279553384215,
"msg": "@mariandavp followed you",
"score": 60,
"type": "follow",
"url": "@mariandavp"
},
{
"date": "2016-09-13T05:09:24",
"id": 21154011013758509,
......@@ -798,5 +782,21 @@
"score": 50,
"type": "follow",
"url": "@robyneggs"
},
{
"date": "2016-09-12T23:44:48",
"id": 21126235460449038,
"msg": "@antithesis followed you",
"score": 40,
"type": "follow",
"url": "@antithesis"
},
{
"date": "2016-09-12T23:41:57",
"id": 21125990647313151,
"msg": "@fabien followed you",
"score": 60,
"type": "follow",
"url": "@fabien"
}
]
......@@ -159,14 +159,6 @@
"type": "follow",
"url": "@swtcamito"
},
{
"date": "2016-08-31T15:04:51",
"id": 20221680988190111,
"msg": "@benadapt followed you",
"score": 60,
"type": "follow",
"url": "@benadapt"
},
{
"date": "2016-09-04T10:02:15",
"id": 20069712160324716,
......@@ -303,22 +295,6 @@
"type": "reply_comment",
"url": "@gtg/re-emsenn-introducing-myself-bitcoin-early-adopter-content-producer-and-designer-20160829t213519226z"
},
{
"date": "2016-08-19T16:57:57",
"id": 19373820084194393,
"msg": "@cryptojoy.com followed you",
"score": 60,
"type": "follow",
"url": "@cryptojoy.com"
},
{
"date": "2016-08-26T18:27:48",
"id": 19316791508402902,
"msg": "@mynameisricky followed you",
"score": 40,
"type": "follow",
"url": "@mynameisricky"
},
{
"date": "2016-08-28T18:54:36",
"id": 19251791473372144,
......@@ -367,14 +343,6 @@
"type": "vote",
"url": "@gtg/re-skypilot-my-first-real-post-was-a-success-and-i-would-like-to-share-the-story-20160827t111440904z"
},
{
"date": "2016-08-15T14:54:36",
"id": 19067580326062966,
"msg": "@fyrstikken followed you",
"score": 70,
"type": "follow",
"url": "@fyrstikken"
},
{
"date": "2016-08-27T04:15:48",
"id": 19053303854621572,
......@@ -639,22 +607,6 @@
"type": "vote",
"url": "@gtg/missing-rewards-while-mining"
},
{
"date": "2016-08-20T19:29:51",
"id": 18273616966696584,
"msg": "@team101 followed you",
"score": 50,
"type": "follow",
"url": "@team101"
},
{
"date": "2016-08-09T21:51:27",
"id": 18247284522215795,
"msg": "@frol followed you",
"score": 50,
"type": "follow",
"url": "@frol"
},
{
"date": "2016-08-19T20:16:03",
"id": 18154590538013310,
......@@ -798,5 +750,53 @@
"score": 50,
"type": "vote",
"url": "@gtg/heavy-duty-witness-node-infrastructure"
},
{
"date": "2016-08-17T14:15:06",
"id": 17878630299452934,
"msg": "@modprobe voted on your post ($4.10)",
"score": 75,
"type": "vote",
"url": "@gtg/heavy-duty-witness-node-infrastructure"
},
{
"date": "2016-08-17T13:29:48",
"id": 17874756238772113,
"msg": "@jackkang followed you",
"score": 50,
"type": "follow",
"url": "@jackkang"
},
{
"date": "2016-08-17T12:31:57",
"id": 17869817026556132,
"msg": "@ausbitbank voted on your post ($0.03)",
"score": 25,
"type": "vote",
"url": "@gtg/re-jesta-re-gtg-heavy-duty-witness-node-infrastructure-20160816t201857176z"
},
{
"date": "2016-08-17T12:27:48",
"id": 17869464839237611,
"msg": "@ausbitbank voted on your post ($0.24)",
"score": 50,
"type": "vote",
"url": "@gtg/heavy-duty-witness-node-infrastructure"
},
{
"date": "2016-08-17T12:06:03",
"id": 17867613708025161,
"msg": "@okay replied to your post",
"score": 40,
"type": "reply",
"url": "@gtg/heavy-duty-witness-node-infrastructure"
},
{
"date": "2016-08-17T11:19:12",
"id": 17863666633384760,
"msg": "@aizensou voted on your post ($0.39)",
"score": 50,
"type": "vote",
"url": "@gtg/heavy-duty-witness-node-infrastructure"
}
]
......@@ -23,14 +23,6 @@
"type": "follow",
"url": "@therajmahal"
},
{
"date": "2016-08-22T17:57:33",
"id": 21390066711475932,
"msg": "@tyler-fletcher followed you",
"score": 50,
"type": "follow",
"url": "@tyler-fletcher"
},
{
"date": "2016-09-14T21:33:36",
"id": 21361062797440303,
......@@ -158,5 +150,13 @@
"score": 40,
"type": "mention",
"url": "@buckland/re-abol-re-buckland-this-was-the-so-called-nano-thermite-that-was-found-everywhere-people-need-the-truth-but-can-they-swallow-it-20160912t232044338z"
},
{
"date": "2016-09-12T08:49:06",
"id": 21049574589261201,
"msg": "@peterz mentioned you",
"score": 50,
"type": "mention",
"url": "@peterz/re-aleco-zakon-cipfa-rabotaet-li-on-v-steemit-20160912t084906549z"
}
]
[
{
"active_votes": [],
"author": "nkdk",
"author_payout_value": "0.000 HBD",
"author_reputation": 25.0,
"beneficiaries": [],
"blacklists": [],
"body": "https://media.giphy.com/media/26vUNS0kPuf3FfJEA/giphy.gif",
"category": "gif",
"children": 0,
"created": "2016-05-12T17:43:30",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"is_paidout": true,
"json_metadata": {},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 0,
"payout": 0.0,
"payout_at": "2016-08-26T03:00:03",
"pending_payout_value": "0.000 HBD",
"percent_steem_dollars": 10000,
"permlink": "i-wonder-what-makes-it-turn",
"post_id": 4045,
"promoted": "0.000 HBD",
"replies": [],
"stats": {
"flag_weight": 0.0,
"gray": false,
"hide": false,
"total_votes": 0
},
"title": "I wonder what makes it turn?",
"updated": "2016-05-12T17:43:30",
"url": "/gif/@nkdk/i-wonder-what-makes-it-turn"
},
{
"active_votes": [
{
"rshares": "-18995393857212",
"voter": "dantheman"
}
],
"author": "nkdk",
"author_payout_value": "0.000 HBD",
"author_reputation": 25.0,
"beneficiaries": [],
"blacklists": [],
"body": "http://66.media.tumblr.com/8019b2a57408f4c7c1f48a8e67618d0b/tumblr_o70ltkru8Z1rte5gyo1_500.gif",
"category": "gif",
"children": 0,
"created": "2016-05-12T17:32:36",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"is_paidout": true,
"json_metadata": {},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": -18995393857212,
"payout": 0.0,
"payout_at": "2016-08-03T00:00:06",
"pending_payout_value": "0.000 HBD",
"percent_steem_dollars": 10000,
"permlink": "magenta-ball",
"post_id": 4041,
"promoted": "0.000 HBD",
"replies": [],
"stats": {
"flag_weight": 3.0,
"gray": false,
"hide": false,
"total_votes": 1
},
"title": "magenta ball",
"updated": "2016-05-12T17:32:36",
"url": "/gif/@nkdk/magenta-ball"
},
{
"active_votes": [
{
"rshares": "2916665887200",
"voter": "lafona-miner"
},
{
"rshares": "226247507009",
"voter": "lafona"
},
{
"rshares": "2698571778435",
"voter": "nextgencrypto"
},
{
"rshares": "3936756300",
"voter": "bunny"
},
{
"rshares": "23937985389",
"voter": "pheonike"
},
{
"rshares": "71142139563",
"voter": "donkeypong"
},
{
"rshares": "691600921",
"voter": "steemrollin"
},
{
"rshares": "7239535072",
"voter": "bangking"
},
{
"rshares": "584711329",
"voter": "steampunkpowered"
},
{
"rshares": "463576832",
"voter": "bobsunday"
},
{
"rshares": "598222801",
"voter": "valtr"
},
{
"rshares": "52317363",
"voter": "summersolstice"
},
{
"rshares": "569159751",
"voter": "gregory-f"
}
],
"author": "nkdk",
"author_payout_value": "2.364 HBD",
"author_reputation": 25.0,
"beneficiaries": [],
"blacklists": [],
"body": "[[embed url=https://www.youtube.com/watch?v=qZI6lGSq1gU]",
"category": "video",
"children": 4,
"created": "2016-05-12T17:22:18",
"curator_payout_value": "2.364 HBD",
"depth": 0,
"is_paidout": true,
"json_metadata": {},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 5950701177965,
"payout": 4.728,
"payout_at": "2016-08-03T00:00:06",
"pending_payout_value": "0.000 HBD",
"percent_steem_dollars": 10000,
"permlink": "thermosolar-hive-healthy-bees-healthy-honey",
"post_id": 4036,
"promoted": "0.000 HBD",
"replies": [],
"stats": {
"flag_weight": 0.0,
"gray": false,
"hide": false,
"total_votes": 13
},
"title": "Thermosolar Hive: healthy bees & healthy honey ",
"updated": "2016-05-12T17:22:18",
"url": "/video/@nkdk/thermosolar-hive-healthy-bees-healthy-honey"
},
{
"active_votes": [
{
"rshares": "-47756400000000",
"voter": "dan"
}
],
"author": "nkdk",
"author_payout_value": "0.000 HBD",
"author_reputation": 25.0,
"beneficiaries": [],
"blacklists": [],
"body": "Un vecino de Arenas de San Pedro ha fallecido al ahogarse en el r\u00edo Arenal, al caerse al cauce cuando intentaba rescatar a su perro, que se hab\u00eda precipitado al agua. \n\n\nSe trata de Ricardo Santos, de 52 a\u00f1os y conocido en Arenas como miembro de la Asociaci\u00f3n de Amigos del Palacio de La Mosquera y fue n\u00famero dos en la lista municipal Por Arenas en 2015.\n\n\n El hecho ocurri\u00f3 al caerse al r\u00edo a la altura del Pol\u00edgono El Martinete, aguas abajo del Arenal, un cauce con abundante caudal y fuerte corriente tras las intensas precipitaciones de los \u00faltimos d\u00edas.\n\n\n La v\u00edctima ha intentado rescatar a su perro de una corriente que le arrastr\u00f3 y que hizo que se le perdiera de vista, seg\u00fan la llamada que alert\u00f3 al Servicio de Emergencias 112, realizada por un amigo que le acompa\u00f1aba en su paseo por la orilla del r\u00edo Arenal.\n\n\n Hasta el lugar del hecho acudieron efectivos de Polic\u00eda Local, Guardia Civil y de Protecci\u00f3n Civil, que para lograr extraer el cuerpo del fallecido tuvieron que amarrarse a un \u00e1rbol para evitar ser arrastrados por la corriente en un lugar agreste y con \"muchas piedras.\n\n\n Tras realizarle, sin \u00e9xito, las labores de recuperaci\u00f3n cardiopulmonar, los facultativos de Sacyl desplazados a la zona s\u00f3lo pudieron certificar el fallecimiento.",
"category": "news",
"children": 1,
"created": "2016-05-12T17:10:39",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"is_paidout": true,
"json_metadata": {},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": -47756400000000,
"payout": 0.0,
"payout_at": "2016-08-03T00:00:06",
"pending_payout_value": "0.000 HBD",
"percent_steem_dollars": 10000,
"permlink": "muere-ahogado-en-arenas-al-intentar-rescatar-a-su-perro",
"post_id": 4028,
"promoted": "0.000 HBD",
"replies": [],
"stats": {
"flag_weight": 4.0,
"gray": false,
"hide": false,
"total_votes": 1
},
"title": "Muere ahogado en Arenas al intentar rescatar a su perro",
"updated": "2016-05-12T17:10:39",
"url": "/news/@nkdk/muere-ahogado-en-arenas-al-intentar-rescatar-a-su-perro"
}
]
[
{
"active_votes": [],
"author": "nkdk",
"author_payout_value": "0.000 HBD",
"author_reputation": 65.67,
"beneficiaries": [],
"blacklists": [],
"body": "https://media.giphy.com/media/26vUNS0kPuf3FfJEA/giphy.gif",
"category": "gif",
"children": 0,
"created": "2016-05-12T17:43:30",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"is_paidout": true,
"json_metadata": {},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 0,
"payout": 0.0,
"payout_at": "2016-08-26T03:00:03",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "i-wonder-what-makes-it-turn",
"post_id": 5243,
"promoted": "0.000 HBD",
"replies": [],
"stats": {
"flag_weight": 0.0,
"gray": false,
"hide": false,
"total_votes": 0
},
"title": "I wonder what makes it turn?",
"updated": "2016-05-12T17:43:30",
"url": "/gif/@nkdk/i-wonder-what-makes-it-turn"
},
{
"active_votes": [
{
"rshares": -18995393857212,
"voter": "dantheman"
}
],
"author": "nkdk",
"author_payout_value": "0.000 HBD",
"author_reputation": 65.67,
"beneficiaries": [],
"blacklists": [],
"body": "http://66.media.tumblr.com/8019b2a57408f4c7c1f48a8e67618d0b/tumblr_o70ltkru8Z1rte5gyo1_500.gif",
"category": "gif",
"children": 0,
"created": "2016-05-12T17:32:36",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"is_paidout": true,
"json_metadata": {},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": -18995393857212,
"payout": 0.0,
"payout_at": "2016-08-03T00:00:06",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "magenta-ball",
"post_id": 5239,
"promoted": "0.000 HBD",
"replies": [],
"stats": {
"flag_weight": 3.0,
"gray": false,
"hide": false,
"total_votes": 1
},
"title": "magenta ball",
"updated": "2016-05-12T17:32:36",
"url": "/gif/@nkdk/magenta-ball"
},
{
"active_votes": [
{
"rshares": 2916665887200,
"voter": "lafona-miner"
},
{
"rshares": 226247507009,
"voter": "lafona"
},
{
"rshares": 2698571778435,
"voter": "nextgencrypto"
},
{
"rshares": 3936756300,
"voter": "bunny"
},
{
"rshares": 23937985389,
"voter": "pheonike"
},
{
"rshares": 71142139563,
"voter": "donkeypong"
},
{
"rshares": 691600921,
"voter": "steemrollin"
},
{
"rshares": 7239535072,
"voter": "bangking"
},
{
"rshares": 584711329,
"voter": "steampunkpowered"
},
{
"rshares": 463576832,
"voter": "bobsunday"
},
{
"rshares": 598222801,
"voter": "valtr"
},
{
"rshares": 52317363,
"voter": "summersolstice"
},
{
"rshares": 569159751,
"voter": "gregory-f"
}
],
"author": "nkdk",
"author_payout_value": "2.364 HBD",
"author_reputation": 65.67,
"beneficiaries": [],
"blacklists": [],
"body": "[[embed url=https://www.youtube.com/watch?v=qZI6lGSq1gU]",
"category": "video",
"children": 4,
"created": "2016-05-12T17:22:18",
"curator_payout_value": "2.364 HBD",
"depth": 0,
"is_paidout": true,
"json_metadata": {},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 5950701177965,
"payout": 4.728,
"payout_at": "2016-08-03T00:00:06",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "thermosolar-hive-healthy-bees-healthy-honey",
"post_id": 5234,
"promoted": "0.000 HBD",
"replies": [],
"stats": {
"flag_weight": 0.0,
"gray": false,
"hide": false,
"total_votes": 13
},
"title": "Thermosolar Hive: healthy bees & healthy honey ",
"updated": "2016-05-12T17:22:18",
"url": "/video/@nkdk/thermosolar-hive-healthy-bees-healthy-honey"
},
{
"active_votes": [
{
"rshares": -47756400000000,
"voter": "dan"
}
],
"author": "nkdk",
"author_payout_value": "0.000 HBD",
"author_reputation": 65.67,
"beneficiaries": [],
"blacklists": [],
"body": "Un vecino de Arenas de San Pedro ha fallecido al ahogarse en el r\u00edo Arenal, al caerse al cauce cuando intentaba rescatar a su perro, que se hab\u00eda precipitado al agua. \n\n\nSe trata de Ricardo Santos, de 52 a\u00f1os y conocido en Arenas como miembro de la Asociaci\u00f3n de Amigos del Palacio de La Mosquera y fue n\u00famero dos en la lista municipal Por Arenas en 2015.\n\n\n El hecho ocurri\u00f3 al caerse al r\u00edo a la altura del Pol\u00edgono El Martinete, aguas abajo del Arenal, un cauce con abundante caudal y fuerte corriente tras las intensas precipitaciones de los \u00faltimos d\u00edas.\n\n\n La v\u00edctima ha intentado rescatar a su perro de una corriente que le arrastr\u00f3 y que hizo que se le perdiera de vista, seg\u00fan la llamada que alert\u00f3 al Servicio de Emergencias 112, realizada por un amigo que le acompa\u00f1aba en su paseo por la orilla del r\u00edo Arenal.\n\n\n Hasta el lugar del hecho acudieron efectivos de Polic\u00eda Local, Guardia Civil y de Protecci\u00f3n Civil, que para lograr extraer el cuerpo del fallecido tuvieron que amarrarse a un \u00e1rbol para evitar ser arrastrados por la corriente en un lugar agreste y con \"muchas piedras.\n\n\n Tras realizarle, sin \u00e9xito, las labores de recuperaci\u00f3n cardiopulmonar, los facultativos de Sacyl desplazados a la zona s\u00f3lo pudieron certificar el fallecimiento.",
"category": "news",
"children": 1,
"created": "2016-05-12T17:10:39",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"is_paidout": true,
"json_metadata": {},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": -47756400000000,
"payout": 0.0,
"payout_at": "2016-08-03T00:00:06",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "muere-ahogado-en-arenas-al-intentar-rescatar-a-su-perro",
"post_id": 5218,
"promoted": "0.000 HBD",
"replies": [],
"stats": {
"flag_weight": 4.0,
"gray": false,
"hide": false,
"total_votes": 1
},
"title": "Muere ahogado en Arenas al intentar rescatar a su perro",
"updated": "2016-05-12T17:10:39",
"url": "/news/@nkdk/muere-ahogado-en-arenas-al-intentar-rescatar-a-su-perro"
}
]
---
test_name: Hivemind bridge_api.get_account_posts
marks:
- patterntest
includes:
- !include ../../../common.yaml
stages:
- name: get_account_posts
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_account_posts"
params: {
"sort":"blog",
"account":"nkdk",
"limit":20,
"start_author":"nkdk",
"start_permlink":"i-wonder-what-makes-it-turn"
}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "nkdk"
directory: "bridge_api_patterns/get_account_posts/blog"
---
test_name: Hivemind bridge_api.get_account_posts
marks:
- patterntest
includes:
- !include ../../../common.yaml
stages:
- name: get_account_posts
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_account_posts"
params: {
"sort":"blog",
"account":"roadscape",
"limit":5,
"start_author":"roadscape",
"start_permlink":"steemd-update-3"
}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "roadscape"
directory: "bridge_api_patterns/get_account_posts/blog"
{
"lastread": "1970-01-01 00:00:00",
"unread": 675
"unread": 659
}
---
test_name: Hivemind condenser_api.get_followers patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_followers
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: {"account":"letritbt","start":"letritbt","limit":3}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "the_same_account_start"
directory: "condenser_api_negative/get_followers"
---
test_name: Hivemind condenser_api.get_followers patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_followers
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: {"account":"roadscape","start":"roadscape","limit":3}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "the_same_account_start"
directory: "condenser_api_negative/get_followers"
{
"code": -32000,
"data": "ValueError: list.remove(x): x not in list",
"message": "Server error"
}
{
"code": -31999,
"data": "Post christiaan/woman-sets-her-husband-on-fire-for-raping-her-7-year-old-daughter was deleted 1 time(s)",
"message": "Invalid parameters"
}
---
test_name: Hivemind condenser_api.get_reblogged_by patterns test
marks:
- patterntest # bug in old HM
includes:
- !include ../../common.yaml
stages:
- name: get_reblogged_by
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_reblogged_by"
params: {"author":"christiaan","permlink":"woman-sets-her-husband-on-fire-for-raping-her-7-year-old-daughter"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "deleted_post"
directory: "condenser_api_negative/get_reblogged_by"
error_response: true
\ No newline at end of file
{
"code": -32000,
"data": "ValueError: list.remove(x): x not in list",
"message": "Server error"
}