Commit 4074f483 authored by Andrzej Lisak's avatar Andrzej Lisak

Merge branch 'get_trending_tags' into 'master'

condenser_api get_trending_tags moved to folder with negative test

See merge request !73
parents 1eb9b114 a9286fd2
---
test_name: Hivemind condenser_api.get_trending_tags over limit patterns test
marks:
- patterntest
- negative
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: "over_limit"
directory: "condenser_api_negative/get_trending_tags"
error_response: true
\ No newline at end of file
---
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: "limit_250"
directory: "condenser_api_patterns/get_trending_tags"
\ No newline at end of file
---
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: "steem"
directory: "condenser_api_patterns/get_trending_tags"
\ No newline at end of file
---
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