Commit c8fe91c6 authored by Andrzej Lisak's avatar Andrzej Lisak
Browse files

Merge branch 'get_discussions_by_author_before_date' of...

Merge branch 'get_discussions_by_author_before_date' of gitlab.syncad.com:hive/tests_api into get_discussions_by_author_before_date
parents 1298c3fb 6aa05acd
---
test_name: Hivemind tags_api.get_discussions_by_author_before_date patterns test author
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: "tags_api.get_discussions_by_author_before_date"
params: ["camilla"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "author"
directory: "tags_api_patterns/get_discussions_by_author_before_date"
\ No newline at end of file
---
test_name: Hivemind tags_api.get_discussions_by_author_before_date patterns test author date
marks:
- patterntest
# note: before_date is completely ignored, and it appears to be broken and/or completely ignored in steemd as well. This call is similar to get_discussions_by_blog but does NOT serve reblogs
# does not work properly, there should be different result in output
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: "tags_api.get_discussions_by_author_before_date"
params: ["camilla", "","2016-05-11T21:25:36"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "author_date"
directory: "tags_api_patterns/get_discussions_by_author_before_date"
\ No newline at end of file
[
{
"active_votes": [
{
"percent": "10000",
"reputation": 0,
"rshares": "3196109703901",
"voter": "wackou"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "37503630300",
"voter": "val"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "73896115956",
"voter": "clains"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "569159751",
"voter": "gregory-f"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "536057250",
"voter": "camilla"
},
{
"percent": "10000",
"reputation": 0,
"rshares": "381265652",
"voter": "murh"
}
],
"author": "camilla",
"author_reputation": 0,
"beneficiaries": [],
"body": "https://i.imgsafe.org/f9e5de3.jpg",
"body_length": 33,
"cashout_time": "1969-12-31T23:59:59",
"category": "cute",
"children": 1,
"created": "2016-05-11T21:20:24",
"curator_payout_value": "0.965 HBD",
"depth": 0,
"json_metadata": "{}",
"last_payout": "2016-08-03T00:00:06",
"last_update": "2016-05-23T22:07:18",
"max_accepted_payout": "1000000.000 HBD",
"net_rshares": 3308995932810,
"parent_author": "",
"parent_permlink": "cute",
"pending_payout_value": "0.000 HBD",
"percent_steem_dollars": 10000,
"permlink": "ready-for-action",
"post_id": 3706,
"promoted": "0.000 HBD",
"replies": [],
"root_title": "Ready for Action!",
"title": "Ready for Action!",
"total_payout_value": "0.966 HBD",
"url": "/cute/@camilla/ready-for-action"
}
]
\ No newline at end of file
---
test_name: Hivemind tags_api.get_discussions_by_author_before_date patterns test author and last permlink
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: "tags_api.get_discussions_by_author_before_date"
params: ["camilla", "ready-for-action"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "author_last_permlink"
directory: "tags_api_patterns/get_discussions_by_author_before_date"
\ No newline at end of file
---
test_name: Hivemind tags_api.get_discussions_by_author_before_date patterns test author and permlink
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: "tags_api.get_discussions_by_author_before_date"
params: ["camilla", "do-you-mind-if-we-play-in-your-puddle"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "author_permlink"
directory: "tags_api_patterns/get_discussions_by_author_before_date"
\ No newline at end of file
---
test_name: Hivemind tags_api.get_discussions_by_author_before_date patterns test author permlink date
marks:
- patterntest
# does not use date, only author and permlink
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: "tags_api.get_discussions_by_author_before_date"
params: ["kristylynn", "hot-springs-and-music-festivals-but-now-it-s-time-to-get-back-to-steemit","2016-05-11T21:25:36"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "author_permlink_date"
directory: "tags_api_patterns/get_discussions_by_author_before_date"
\ No newline at end of file
---
test_name: Hivemind tags_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: "tags_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: "author_permlink_date_limit"
directory: "tags_api_patterns/get_discussions_by_author_before_date"
\ No newline at end of file
---
test_name: Hivemind tags_api.get_discussions_by_author_before_date patterns test not existing author empty result
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: "tags_api.get_discussions_by_author_before_date"
params: ["kr3", "", "", 1]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "not_existing_author"
directory: "tags_api_patterns/get_discussions_by_author_before_date"
\ No newline at end of file
---
test_name: Hivemind tags_api.get_discussions_by_author_before_date patterns test not full permlink
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: "tags_api.get_discussions_by_author_before_date"
params: ["dragonho", "suntory-time-weekend", "", 1]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "not_full_permlink"
directory: "tags_api_patterns/get_discussions_by_author_before_date"
\ No newline at end of file
Supports Markdown
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