Commit dcb34039 authored by Andrzej Lisak's avatar Andrzej Lisak

Merge branch 'get_replies_by_last_update' into 'master'

condenser_api get_replies_by_last_update test moved to folder

See merge request !82
parents d5ba0398 5ae42c5b
---
test_name: Hivemind condenser_api.get_replies_by_last_update blank start author patterns test
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_replies_by_last_update blank start author
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_replies_by_last_update"
params: ["","non_existing_permlink",1]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "blank_start_author"
directory: "condenser_api_negative/get_replies_by_last_update"
error_response: true
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_replies_by_last_update invalid account name length patterns test
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_replies_by_last_update invalid account name length
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_replies_by_last_update"
params: ["a","non_existing_permlink",1]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "invalid_account_name"
directory: "condenser_api_negative/get_replies_by_last_update"
error_response: true
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_replies_by_last_update over limit patterns test
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_replies_by_last_update 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_replies_by_last_update"
params: ["admin","non_existing_permlink",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_replies_by_last_update"
error_response: true
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_replies_by_last_update patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_replies_by_last_update
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_replies_by_last_update"
params: ["admin","firstpost",1]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "admin"
directory: "condenser_api_patterns/get_replies_by_last_update"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_replies_by_last_update limit 100 patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_replies_by_last_update
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_replies_by_last_update"
params: ["gtg","",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_replies_by_last_update"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_replies_by_last_update no results patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_replies_by_last_update 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_replies_by_last_update"
params: ["admin","non_existing_permlink",1]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "no_results"
directory: "condenser_api_patterns/get_replies_by_last_update"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_replies_by_last_update patterns test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_replies_by_last_update
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_replies_by_last_update"
params: ["admin","firstpost",1]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_replies_by_last_update"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_replies_by_last_update limit 100 patterns test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_replies_by_last_update
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_replies_by_last_update"
params: ["gtg","",100]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_replies_by_last_update_limit_100"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_replies_by_last_update no results patterns test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_replies_by_last_update 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_replies_by_last_update"
params: ["admin","non_existing_permlink",1]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_replies_by_last_update_no_results"
directory: "condenser_api_patterns"
---
test_name: Hivemind condenser_api.get_replies_by_last_update over limit patterns test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_replies_by_last_update 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_replies_by_last_update"
params: ["admin","non_existing_permlink",101]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_replies_by_last_update_over_limit"
directory: "condenser_api_patterns"
error_response: true
---
test_name: Hivemind condenser_api.get_replies_by_last_update blank start author patterns test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_replies_by_last_update blank start author
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_replies_by_last_update"
params: ["","non_existing_permlink",1]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_replies_by_last_update_blank_start_author"
directory: "condenser_api_patterns"
error_response: true
---
test_name: Hivemind condenser_api.get_replies_by_last_update invalid account name length patterns test
marks:
- patterntest
includes:
- !include common.yaml
stages:
- name: get_replies_by_last_update invalid account name length
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_replies_by_last_update"
params: ["a","non_existing_permlink",1]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "get_replies_by_last_update_invalid_account_name"
directory: "condenser_api_patterns"
error_response: true
---
test_name: Hivemind condenser_api.get_discussions_by_author_before_date 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