Skip to content
Snippets Groups Projects
Commit ec8cba32 authored by Mariusz Trela's avatar Mariusz Trela Committed by Mariusz Trela
Browse files

Added tests for `get_discussions_by_feed` group in order to use on full instance

parent 0179401b
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !172. Comments created here will be created in the context of that merge request.
---
test_name: Hivemind condenser_api.get_discussions_by_feed patterns test
marks:
- patterntest # tag is not a tag but account whose feed we are looking at (set of posts created/reblogged by those followed by selected account)
# there can be no nonempty results for not-up-to-date HM because it only gives posts that were created/reblogged within last month (no param to change it)
includes:
- !include ../../common.yaml
stages:
- name: get_discussions_by_feed
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_feed"
params: {"tag":"asgarth","start_author":"","start_permlink":"","limit":20}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "asgarth"
directory: "condenser_api_patterns/get_discussions_by_feed"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_discussions_by_feed patterns test
marks:
- patterntest # tag is not a tag but account whose feed we are looking at (set of posts created/reblogged by those followed by selected account)
# there can be no nonempty results for not-up-to-date HM because it only gives posts that were created/reblogged within last month (no param to change it)
includes:
- !include ../../common.yaml
stages:
- name: get_discussions_by_feed
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_feed"
params: {"tag":"joetunex","start_author":"","start_permlink":"","limit":20}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "joetunex"
directory: "condenser_api_patterns/get_discussions_by_feed"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_discussions_by_feed patterns test
marks:
- patterntest # tag is not a tag but account whose feed we are looking at (set of posts created/reblogged by those followed by selected account)
# there can be no nonempty results for not-up-to-date HM because it only gives posts that were created/reblogged within last month (no param to change it)
includes:
- !include ../../common.yaml
stages:
- name: get_discussions_by_feed
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_feed"
params: {"tag":"pfunk","start_author":"","start_permlink":"","limit":20}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "pfunk"
directory: "condenser_api_patterns/get_discussions_by_feed"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_discussions_by_feed patterns test
marks:
- patterntest # tag is not a tag but account whose feed we are looking at (set of posts created/reblogged by those followed by selected account)
# there can be no nonempty results for not-up-to-date HM because it only gives posts that were created/reblogged within last month (no param to change it)
includes:
- !include ../../common.yaml
stages:
- name: get_discussions_by_feed
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_feed"
params: {"tag":"sketch.and.jam","start_author":"","start_permlink":"","limit":20}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "sketch.and.jam"
directory: "condenser_api_patterns/get_discussions_by_feed"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment