Skip to content
Snippets Groups Projects
Commit c4afbded authored by Marcin's avatar Marcin Committed by Marcin
Browse files

add test for tag duplication in a post

parent 61fd57ef
No related branches found
No related tags found
2 merge requests!827Merge develop changes to master,!681during post edition delete only already added and going to remove tags id
......@@ -55,7 +55,7 @@
"permlink": "test-beneficiaries",
"title": "Testing",
"body": "Much testing",
"json_metadata": "{}"
"json_metadata": "{\"tags\":[\"taverntest\",\"TavernTest\",\"# TavernTest\",\"taverntest\"]}"
}
},
{
......@@ -106,6 +106,29 @@
}
]
},
"4984622": {
"transactions": [
{
"ref_block_num": 100000,
"ref_block_prefix": 1,
"expiration": "2020-03-23T12:17:03",
"operations": [
{
"type": "comment_operation",
"value": {
"parent_author": "",
"parent_permlink": "tag",
"author": "jouchelle",
"permlink": "test-beneficiaries",
"title": "Testing",
"body": "Much testing",
"json_metadata": "{\"tags\":[\"taverntest\",\"TavernTest\",\"# TavernTest\",\"taverntest\"]}"
}
}
]
}
]
},
"5000000": {
"transactions": []
}
......
{
"promoted": "0.000 HBD",
"replies": [],
"reblogs": 0,
"active_votes": [],
"author": "jouchelle",
"author_payout_value": "0.000 HBD",
"author_reputation": 25,
"beneficiaries": [
{
"account": "amering",
"weight": 400
},
{
"account": "batel1",
"weight": 6800
},
{
"account": "cloop3",
"weight": 2000
},
{
"account": "faddy3",
"weight": 600
},
{
"account": "fminerten5",
"weight": 200
}
],
"blacklists": [],
"body": "Much testing",
"category": "tag",
"children": 0,
"created": "2016-09-15T06:49:42",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"is_paidout": false,
"json_metadata": {},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 0,
"payout": 29.016,
"payout_at": "2016-09-22T06:49:42",
"pending_payout_value": "29.016 HBD",
"percent_hbd": 10000,
"permlink": "test-beneficiaries",
"post_id": 1251466,
"stats": {
"flag_weight": 0.0,
"gray": false,
"hide": false,
"total_votes": 0
},
"title": "Testing",
"updated": "2016-09-15T06:49:42",
"url": "/tag/@jouchelle/test-beneficiaries"
"active_votes": [],
"author": "jouchelle",
"author_payout_value": "0.000 HBD",
"author_reputation": 25,
"beneficiaries": [
{
"account": "amering",
"weight": 400
},
{
"account": "batel1",
"weight": 6800
},
{
"account": "cloop3",
"weight": 2000
},
{
"account": "faddy3",
"weight": 600
},
{
"account": "fminerten5",
"weight": 200
}
],
"blacklists": [],
"body": "Much testing",
"category": "tag",
"children": 0,
"created": "2016-09-15T06:49:42",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"is_paidout": false,
"json_metadata": {
"tags": [
"taverntest",
"TavernTest",
"# TavernTest",
"taverntest"
]
},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 0,
"payout": 29.016,
"payout_at": "2016-09-22T06:49:42",
"pending_payout_value": "29.016 HBD",
"percent_hbd": 10000,
"permlink": "test-beneficiaries",
"post_id": 1251466,
"promoted": "0.000 HBD",
"reblogs": 0,
"replies": [],
"stats": {
"flag_weight": 0.0,
"gray": false,
"hide": false,
"total_votes": 0
},
"title": "Testing",
"updated": "2016-09-15T06:49:45",
"url": "/tag/@jouchelle/test-beneficiaries"
}
[
{
"active_votes": [],
"author": "jouchelle",
"author_payout_value": "0.000 HBD",
"author_reputation": 25,
"beneficiaries": [
{
"account": "amering",
"weight": 400
},
{
"account": "batel1",
"weight": 6800
},
{
"account": "cloop3",
"weight": 2000
},
{
"account": "faddy3",
"weight": 600
},
{
"account": "fminerten5",
"weight": 200
}
],
"blacklists": [],
"body": "Much testing",
"category": "tag",
"children": 0,
"created": "2016-09-15T06:49:42",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"is_paidout": false,
"json_metadata": {
"tags": [
"taverntest",
"TavernTest",
"# TavernTest",
"taverntest"
]
},
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 0,
"payout": 29.016,
"payout_at": "2016-09-22T06:49:42",
"pending_payout_value": "29.016 HBD",
"percent_hbd": 10000,
"permlink": "test-beneficiaries",
"post_id": 1251464,
"promoted": "0.000 HBD",
"reblogs": 0,
"replies": [],
"stats": {
"flag_weight": 0.0,
"gray": false,
"hide": false,
"total_votes": 0
},
"title": "Testing",
"updated": "2016-09-15T06:49:45",
"url": "/tag/@jouchelle/test-beneficiaries"
}
]
---
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_ranked_posts"
params: {"sort":"created","tag":"taverntest"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
ignore_tags: "<bridge posts>"
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