Commit a9286fd2 authored by Andrzej Lisak's avatar Andrzej Lisak

[ABW]: removed duplicate tests that were moved to separate folder; updated to...

[ABW]: removed duplicate tests that were moved to separate folder; updated to latest comment version
parent 01246db5
{
"code": -32602,
"data": "limit exceeds max (251 > 250)",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "limit exceeds max (251 > 250)",
"message": "Invalid parameters"
}
[
{
"comments": 10141,
"name": "steem",
"top_posts": 1158,
"total_payouts": "82438.187 HBD"
},
{
"comments": 5633,
"name": "travel",
"top_posts": 1159,
"total_payouts": "66237.472 HBD"
},
{
"comments": 7565,
"name": "food",
"top_posts": 1373,
"total_payouts": "59957.608 HBD"
},
{
"comments": 11430,
"name": "introduceyourself",
"top_posts": 1214,
"total_payouts": "58893.319 HBD"
},
{
"comments": 16286,
"name": "photography",
"top_posts": 4360,
"total_payouts": "53604.656 HBD"
},
{
"comments": 4975,
"name": "money",
"top_posts": 998,
"total_payouts": "42462.388 HBD"
},
{
"comments": 4028,
"name": "writing",
"top_posts": 807,
"total_payouts": "36257.390 HBD"
},
{
"comments": 2890,
"name": "bitcoin",
"top_posts": 1220,
"total_payouts": "31111.750 HBD"
},
{
"comments": 3209,
"name": "science",
"top_posts": 680,
"total_payouts": "25141.041 HBD"
},
{
"comments": 2775,
"name": "philosophy",
"top_posts": 367,
"total_payouts": "24362.939 HBD"
}
]
\ No newline at end of file
[
{
"comments": 10141,
"name": "steem",
"top_posts": 1158,
"total_payouts": "82690.698 HBD"
},
{
"comments": 5633,
"name": "travel",
"top_posts": 1159,
"total_payouts": "66264.303 HBD"
},
{
"comments": 7565,
"name": "food",
"top_posts": 1373,
"total_payouts": "60027.406 HBD"
},
{
"comments": 11430,
"name": "introduceyourself",
"top_posts": 1214,
"total_payouts": "59086.068 HBD"
},
{
"comments": 16286,
"name": "photography",
"top_posts": 4360,
"total_payouts": "53799.666 HBD"
},
{
"comments": 4975,
"name": "money",
"top_posts": 998,
"total_payouts": "42587.156 HBD"
},
{
"comments": 4028,
"name": "writing",
"top_posts": 807,
"total_payouts": "36298.568 HBD"
},
{
"comments": 2890,
"name": "bitcoin",
"top_posts": 1220,
"total_payouts": "31135.659 HBD"
},
{
"comments": 3209,
"name": "science",
"top_posts": 680,
"total_payouts": "25165.249 HBD"
},
{
"comments": 2775,
"name": "philosophy",
"top_posts": 367,
"total_payouts": "24387.618 HBD"
}
]
......@@ -2,9 +2,7 @@
test_name: Hivemind condenser_api.get_trending_tags limit 250 patterns test
marks:
- patterntest # there is random order in some elements of original answer, not comparable to original due to ordering influenced by different pending payouts
- failing
- xfail # 4 categories different, in particular some fairly popular not present in original (to be investigated)
- patterntest # not comparable to original due to ordering influenced by different pending payouts (also order of tags with the same payout was basically random)
includes:
- !include ../../common.yaml
......
---
test_name: Hivemind condenser_api.get_trending_tags patterns test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_trending_tags
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_trending_tags"
params: ["steem",10]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_trending_tags"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_trending_tags limit 250 patterns test
marks:
- patterntest # not comparable to original due to ordering influenced by different pending payouts (also order of tags with the same payout was basically random)
includes:
- !include common.yaml
stages:
- name: get_trending_tags limit 250
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_trending_tags"
params: {"start_tag": "dream","limit":250}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_trending_tags_limit_250"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_trending_tags over limit patterns test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_trending_tags limit 250
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_trending_tags"
params: {"start_tag": "dream","limit":251}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_followers_trending_tags_over_limit"
directory: "condenser_api_patterns"
error_response: true
---
test_name: Hivemind condenser_api.get_discussions_by_trending patterns test
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment