Commit 85495f8c authored by Andrzej Lisak's avatar Andrzej Lisak

Merge branch 'condenser_get_discussions_by_author_before_date' into 'master'

condenser_api get_discussions_by_author_before_date tests moved to folder

See merge request !83
parents dcb34039 2528499b
---
test_name: Hivemind condenser_api.get_discussions_by_author_before_date over limit patterns test
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_discussions_by_author 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_discussions_by_author_before_date"
params: {"author":"steemit","start_permlink":"firstpost","before_date":"2009-04-19T22:49:43","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_discussions_by_author_before_date"
error_response: true
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_discussions_by_author_before_date patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_discussions_by_author_before_date
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_discussions_by_author_before_date"
params: {"author":"steemit","start_permlink":"firstpost","before_date":"2016-04-19T22:49:43","limit":1}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "first"
directory: "condenser_api_patterns/get_discussions_by_author_before_date"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_discussions_by_author_before_date patterns test
marks:
- patterntest # should return empty set - no posts before 2009 (to be investigated but works like original)
includes:
- !include ../../common.yaml
stages:
- name: get_discussions_by_author_before_date_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_discussions_by_author_before_date"
params: {"author":"steemit","start_permlink":"firstpost","before_date":"2009-04-19T22:49:43","limit":1}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "second"
directory: "condenser_api_patterns/get_discussions_by_author_before_date"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_discussions_by_author_before_date patterns test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_discussions_by_author_before_date
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_discussions_by_author_before_date"
params: {"author":"steemit","start_permlink":"firstpost","before_date":"2016-04-19T22:49:43","limit":1}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_discussions_by_author_before_date"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_discussions_by_author_before_date patterns test
marks:
- patterntest # should return empty set - no posts before 2009 (to be investigated but works like original)
includes:
- !include common.yaml
stages:
- name: get_discussions_by_author_before_date_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_discussions_by_author_before_date"
params: {"author":"steemit","start_permlink":"firstpost","before_date":"2009-04-19T22:49:43","limit":1}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_discussions_by_author_before_date_no_results"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_discussions_by_author_before_date over limit patterns test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_discussions_by_author 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_discussions_by_author_before_date"
params: {"author":"steemit","start_permlink":"firstpost","before_date":"2009-04-19T22:49:43","limit":101}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_discussions_by_author_before_date_over_limit"
directory: "condenser_api_patterns"
error_response: true
---
test_name: Hivemind condenser_api.get_post_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