Commit cde8d616 authored by Andrzej Lisak's avatar Andrzej Lisak

Merge branch 'condenser_get_comment_discussions_by_payout' into 'master'

condenser_api get_comment_discussions_by_payout tests moved to folder

See merge request !85
parents 56b79d07 59d5e3a6
---
test_name: Hivemind condenser_api.get_comment_discussions_by_payout over limit test
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_comment_discussions_by_payout over limit
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_comment_discussions_by_payout"
params: {"tag":"tag","limit":101}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "over_limit"
directory: "condenser_api_negative/get_comment_discussions_by_payout"
error_response: true
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_comment_discussions_by_payout limit 100 test
marks:
- patterntest # differences in pending payout make it incomparable with original (also order of comments with the same payout was basically random)
includes:
- !include ../../common.yaml
stages:
- name: get_comment_discussions_by_payout limit 100
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_comment_discussions_by_payout"
params: {"tag":"test","limit":100}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "limit_100"
directory: "condenser_api_patterns/get_comment_discussions_by_payout"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_comment_discussions_by_payout no results test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_comment_discussions_by_payout no results
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_comment_discussions_by_payout"
params: {"tag":"non_existing_tag","limit":100}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "no_results"
directory: "condenser_api_patterns/get_comment_discussions_by_payout"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_comment_discussions_by_payout patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_comment_discussions_by_payout
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_comment_discussions_by_payout"
params: {"tag":"polska","limit":1}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "polska"
directory: "condenser_api_patterns/get_comment_discussions_by_payout"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_comment_discussions_by_payout patterns test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_comment_discussions_by_payout
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_comment_discussions_by_payout"
params: {"tag":"polska","limit":1}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_comment_discussions_by_payout"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_comment_discussions_by_payout limit 100 test
marks:
- patterntest # differences in pending payout make it incomparable with original (also order of comments with the same payout was basically random)
includes:
- !include common.yaml
stages:
- name: get_comment_discussions_by_payout limit 100
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_comment_discussions_by_payout"
params: {"tag":"test","limit":100}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_comment_discussions_by_payout_limit_100"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_comment_discussions_by_payout no results test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_comment_discussions_by_payout no results
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_comment_discussions_by_payout"
params: {"tag":"non_existing_tag","limit":100}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_comment_discussions_by_payout_no_results"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_comment_discussions_by_payout over limit test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_comment_discussions_by_payout over limit
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_comment_discussions_by_payout"
params: {"tag":"tag","limit":101}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_comment_discussions_by_payout_over_limit"
directory: "condenser_api_patterns"
error_response: true
---
test_name: Hivemind condenser_api.get_blog_entries 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