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 @@ ...@@ -55,7 +55,7 @@
"permlink": "test-beneficiaries", "permlink": "test-beneficiaries",
"title": "Testing", "title": "Testing",
"body": "Much testing", "body": "Much testing",
"json_metadata": "{}" "json_metadata": "{\"tags\":[\"taverntest\",\"TavernTest\",\"# TavernTest\",\"taverntest\"]}"
} }
}, },
{ {
...@@ -106,6 +106,29 @@ ...@@ -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": { "5000000": {
"transactions": [] "transactions": []
} }
......
{ {
"promoted": "0.000 HBD", "active_votes": [],
"replies": [], "author": "jouchelle",
"reblogs": 0, "author_payout_value": "0.000 HBD",
"active_votes": [], "author_reputation": 25,
"author": "jouchelle", "beneficiaries": [
"author_payout_value": "0.000 HBD", {
"author_reputation": 25, "account": "amering",
"beneficiaries": [ "weight": 400
{ },
"account": "amering", {
"weight": 400 "account": "batel1",
}, "weight": 6800
{ },
"account": "batel1", {
"weight": 6800 "account": "cloop3",
}, "weight": 2000
{ },
"account": "cloop3", {
"weight": 2000 "account": "faddy3",
}, "weight": 600
{ },
"account": "faddy3", {
"weight": 600 "account": "fminerten5",
}, "weight": 200
{ }
"account": "fminerten5", ],
"weight": 200 "blacklists": [],
} "body": "Much testing",
], "category": "tag",
"blacklists": [], "children": 0,
"body": "Much testing", "created": "2016-09-15T06:49:42",
"category": "tag", "curator_payout_value": "0.000 HBD",
"children": 0, "depth": 0,
"created": "2016-09-15T06:49:42", "is_paidout": false,
"curator_payout_value": "0.000 HBD", "json_metadata": {
"depth": 0, "tags": [
"is_paidout": false, "taverntest",
"json_metadata": {}, "TavernTest",
"max_accepted_payout": "1000000.000 HBD", "# TavernTest",
"net_rshares": 0, "taverntest"
"payout": 29.016, ]
"payout_at": "2016-09-22T06:49:42", },
"pending_payout_value": "29.016 HBD", "max_accepted_payout": "1000000.000 HBD",
"percent_hbd": 10000, "net_rshares": 0,
"permlink": "test-beneficiaries", "payout": 29.016,
"post_id": 1251466, "payout_at": "2016-09-22T06:49:42",
"stats": { "pending_payout_value": "29.016 HBD",
"flag_weight": 0.0, "percent_hbd": 10000,
"gray": false, "permlink": "test-beneficiaries",
"hide": false, "post_id": 1251466,
"total_votes": 0 "promoted": "0.000 HBD",
}, "reblogs": 0,
"title": "Testing", "replies": [],
"updated": "2016-09-15T06:49:42", "stats": {
"url": "/tag/@jouchelle/test-beneficiaries" "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