Commit 56b79d07 authored by Andrzej Lisak's avatar Andrzej Lisak

Merge branch 'condenser_get_post_discussions_by_payout' into 'master'

condenser_api get_post_discussions_by_payout tests moved to folder

See merge request !84
parents 85495f8c 93bf079c
---
test_name: Hivemind condenser_api.get_post_discussions_by_payout over limit test
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_post_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_post_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_post_discussions_by_payout"
error_response: true
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_post_discussions_by_payout limit 20 test
marks:
- patterntest # differences in pending payout make it incomparable with original (also order of comments with the same payout was basically random)
- failing
- xfail # extra vote comes from the lack of muting functionality
includes:
- !include ../../common.yaml
stages:
- name: get_post_discussions_by_payout limit 20
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_post_discussions_by_payout"
params: {"tag":"test","limit":20}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "limit_20"
directory: "condenser_api_patterns/get_post_discussions_by_payout"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_post_discussions_by_payout no results test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_post_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_post_discussions_by_payout"
params: {"tag":"non_existing_tag","limit":20}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "no_results"
directory: "condenser_api_patterns/get_post_discussions_by_payout"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_post_discussions_by_payout patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_post_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_post_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_post_discussions_by_payout"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_post_discussions_by_payout patterns test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_post_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_post_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_post_discussions_by_payout"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_post_discussions_by_payout limit 20 test
marks:
- patterntest # differences in pending payout make it incomparable with original (also order of comments with the same payout was basically random)
- failing
- xfail # extra vote comes from the lack of muting functionality
includes:
- !include common.yaml
stages:
- name: get_post_discussions_by_payout limit 20
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_post_discussions_by_payout"
params: {"tag":"test","limit":20}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_post_discussions_by_payout_limit_20"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_post_discussions_by_payout no results test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_post_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_post_discussions_by_payout"
params: {"tag":"non_existing_tag","limit":20}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_post_discussions_by_payout_no_results"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_post_discussions_by_payout over limit test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_post_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_post_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_post_discussions_by_payout_over_limit"
directory: "condenser_api_patterns"
error_response: true
---
test_name: Hivemind condenser_api.get_comment_discussions_by_payout 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