Skip to content
Snippets Groups Projects
Commit 1852db2c authored by Martin Lees's avatar Martin Lees Committed by Howo
Browse files

tests for communities type 1

parent 90ea3fb4
No related branches found
No related tags found
1 merge request!531Community type 2 and 3 + update community type op
{
"about": "",
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:51",
"description": "",
"flag_text": "",
"id": 92531,
"is_nsfw": false,
"lang": "en",
"name": "hive-111119",
"num_authors": 2,
"num_pending": 5,
"settings": {},
"subscribers": 1,
"sum_pending": 0,
"team": [
[
"hive-111119",
"owner",
""
]
],
"title": "@hive-111119",
"type_id": 1
}
---
test_name: Hivemind
marks:
- patterntest
# Communities not implemented under 5 mln blocks, but some were created by mock mechanism, therefore they are in result.
includes:
- !include ../../common.yaml
stages:
- name: test
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_community"
params: {"name":"hive-111119"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
ignore_tags: "<bridge community>"
{
"ismember/ismember-hive-111119": {
"active_votes": [],
"author": "ismember",
"author_payout_value": "0.000 HBD",
"author_reputation": 25,
"beneficiaries": [],
"blacklists": [],
"body": "lorem ipsum",
"category": "hive-111119",
"children": 3,
"created": "2016-09-15T19:47:54",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"is_paidout": false,
"json_metadata": {},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 0,
"payout": 0.0,
"payout_at": "2016-09-22T19:47:54",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "ismember-hive-111119",
"post_id": 1258106,
"promoted": "0.000 HBD",
"replies": [
"ismember/re-ismember-hive-111119",
"notmember/re-2-ismember-hive-111119"
],
"stats": {
"flag_weight": 0.0,
"gray": false,
"hide": false,
"total_votes": 0
},
"title": "ismember This post will not be muted",
"updated": "2016-09-15T19:47:54",
"url": "/hive-111119/@ismember/ismember-hive-111119"
},
"ismember/re-ismember-hive-111119": {
"active_votes": [],
"author": "ismember",
"author_payout_value": "0.000 HBD",
"author_reputation": 25,
"beneficiaries": [],
"blacklists": [],
"body": "lorem ipsum",
"category": "hive-111119",
"children": 1,
"created": "2016-09-15T19:47:54",
"curator_payout_value": "0.000 HBD",
"depth": 1,
"is_paidout": false,
"json_metadata": {},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 0,
"parent_author": "ismember",
"parent_permlink": "ismember-hive-111119",
"payout": 0.0,
"payout_at": "2016-09-22T19:47:54",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "re-ismember-hive-111119",
"post_id": 1258108,
"promoted": "0.000 HBD",
"replies": [
"ismember/re-re-ismember-hive-111119"
],
"stats": {
"flag_weight": 0.0,
"gray": false,
"hide": false,
"total_votes": 0
},
"title": "RE: ismember This post will not be muted",
"updated": "2016-09-15T19:47:54",
"url": "/hive-111119/@ismember/ismember-hive-111119#@ismember/re-ismember-hive-111119"
},
"ismember/re-re-ismember-hive-111119": {
"active_votes": [],
"author": "ismember",
"author_payout_value": "0.000 HBD",
"author_reputation": 25,
"beneficiaries": [],
"blacklists": [],
"body": "lorem ipsum",
"category": "hive-111119",
"children": 0,
"created": "2016-09-15T19:47:54",
"curator_payout_value": "0.000 HBD",
"depth": 2,
"is_paidout": false,
"json_metadata": {},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 0,
"parent_author": "ismember",
"parent_permlink": "re-ismember-hive-111119",
"payout": 0.0,
"payout_at": "2016-09-22T19:47:54",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "re-re-ismember-hive-111119",
"post_id": 1258109,
"promoted": "0.000 HBD",
"replies": [],
"stats": {
"flag_weight": 0.0,
"gray": false,
"hide": false,
"total_votes": 0
},
"title": "RE: ismember This post will not be muted",
"updated": "2016-09-15T19:47:54",
"url": "/hive-111119/@ismember/ismember-hive-111119#@ismember/re-re-ismember-hive-111119"
},
"notmember/re-2-ismember-hive-111119": {
"active_votes": [],
"author": "notmember",
"author_payout_value": "0.000 HBD",
"author_reputation": 25,
"beneficiaries": [],
"blacklists": [],
"body": "lorem ipsum",
"category": "hive-111119",
"children": 0,
"created": "2016-09-15T19:47:54",
"curator_payout_value": "0.000 HBD",
"depth": 1,
"is_paidout": false,
"json_metadata": {},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 0,
"parent_author": "ismember",
"parent_permlink": "ismember-hive-111119",
"payout": 0.0,
"payout_at": "2016-09-22T19:47:54",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "re-2-ismember-hive-111119",
"post_id": 1258110,
"promoted": "0.000 HBD",
"replies": [],
"stats": {
"flag_weight": 0.0,
"gray": false,
"hide": false,
"total_votes": 0
},
"title": "RE: ismember This post will not be muted",
"updated": "2016-09-15T19:47:54",
"url": "/hive-111119/@ismember/ismember-hive-111119#@notmember/re-2-ismember-hive-111119"
}
}
---
test_name: Hivemind
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: test
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_discussion"
params: {"author":"ismember", "permlink":"ismember-hive-111119"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
ignore_tags: "<bridge discussion>"
[]
[
{
"active_votes": [],
"author": "notmember",
"author_payout_value": "0.000 HBD",
"author_reputation": 25,
"beneficiaries": [],
"blacklists": [],
"body": "lorem ipsum",
"category": "hive-111119",
"children": 0,
"created": "2016-09-15T19:47:54",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"is_paidout": false,
"json_metadata": {},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 0,
"payout": 0.0,
"payout_at": "2016-09-22T19:47:54",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "notmember-hive-111119",
"post_id": 1258107,
"promoted": "0.000 HBD",
"replies": [],
"stats": {
"flag_weight": 0.0,
"gray": false,
"hide": false,
"total_votes": 0
},
"title": "notmember This post will not be muted",
"updated": "2016-09-15T19:47:54",
"url": "/hive-111119/@notmember/notmember-hive-111119"
},
{
"active_votes": [],
"author": "ismember",
"author_payout_value": "0.000 HBD",
"author_reputation": 25,
"beneficiaries": [],
"blacklists": [],
"body": "lorem ipsum",
"category": "hive-111119",
"children": 3,
"created": "2016-09-15T19:47:54",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"is_paidout": false,
"json_metadata": {},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 0,
"payout": 0.0,
"payout_at": "2016-09-22T19:47:54",
"pending_payout_value": "0.000 HBD",
"percent_hbd": 10000,
"permlink": "ismember-hive-111119",
"post_id": 1258106,
"promoted": "0.000 HBD",
"replies": [],
"stats": {
"flag_weight": 0.0,
"gray": false,
"hide": false,
"total_votes": 0
},
"title": "ismember This post will not be muted",
"updated": "2016-09-15T19:47:54",
"url": "/hive-111119/@ismember/ismember-hive-111119"
}
]
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