Commit d5b56ba6 authored by Pawel Maniora's avatar Pawel Maniora

bridge api test separation last part

parent 5e510260
---
test_name: Hivemind bridge_api.get_account_posts sort blog patterns test
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_account_posts sort blog
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_account_posts"
params: {"sort":"blog", "account":"steemit"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "sort_blog"
directory: "bridge_api_patterns/get_account_posts"
---
test_name: Hivemind bridge_api.get_account_posts sort blog comments test
marks:
- patterntest # should return posts, now its empty (hive3 hivemind)
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_account_posts sort blog
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_account_posts"
params: {"sort":"comments", "account":"steemit"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "sort_comments"
directory: "bridge_api_patterns/get_account_posts"
---
test_name: Hivemind bridge_api.get_account_posts sort feed patterns test
marks:
- patterntest # should return posts, now its empty (hive3 hivemind)
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_account_posts sort 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: "bridge.get_account_posts"
params: {"sort":"feed", "account":"steemit"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "sort_feed"
directory: "bridge_api_patterns/get_account_posts"
---
test_name: Hivemind bridge_api.get_account_posts sort payout patterns test
marks:
- patterntest # should return posts, now its empty (hive3 hivemind)
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_account_posts sort 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: "bridge.get_account_posts"
params: {"sort":"payout", "account":"steemit"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "sort_payout"
directory: "bridge_api_patterns/get_account_posts"
---
test_name: Hivemind bridge_api.get_account_posts sort replies patterns test
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_account_posts sort replies
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_account_posts"
params: {"sort":"replies", "account":"steemit"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "sort_replies"
directory: "bridge_api_patterns/get_account_posts"
......@@ -439,4 +439,4 @@
"updated": "2016-03-30T18:30:18",
"url": "/meta/@steemit/firstpost"
}
]
\ No newline at end of file
]
---
test_name: Hivemind bridge.get_account_posts test
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_account_posts
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_account_posts"
params: {"sort":"posts", "account":"steemit"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "steemit"
directory: "bridge_api_patterns/get_account_posts"
---
test_name: Hivemind bridge_api.get_discussion gtg patterns test
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_discussion gtg patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_discussion"
params: {"author":"gtg", "permlink":"missing-rewards-while-mining"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "gtg"
directory: "bridge_api_patterns/get_discussion"
---
test_name: Hivemind bridge_api.get_discussion patterns test
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
- failing
- xfail # gray
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_discussion patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_discussion"
params: {"author":"steemit", "permlink":"firstpost"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "steemit"
directory: "bridge_api_patterns/get_discussion"
---
test_name: Hivemind bridge_api.get_post gtg patterns test
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_post gtg patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_post"
params: {"author":"gtg", "permlink":"heavy-duty-witness-node-infrastructure"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "gtg"
directory: "bridge_api_patterns/get_post"
---
test_name: Hivemind bridge_api.get_post patterns test
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_post patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_post"
params: {"author":"steemit", "permlink":"firstpost"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "steemit"
directory: "bridge_api_patterns/get_post"
---
test_name: Hivemind bridge_api.get_post_header patterns test
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_post_header
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_post_header"
params: {"author":"gtg", "permlink":"missing-rewards-while-mining"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "gtg"
directory: "bridge_api_patterns/get_post_header"
\ No newline at end of file
---
test_name: Hivemind bridge_api.get_ranked_posts created patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts created patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"created","tag":"","observer":"alice"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "created"
directory: "bridge_api_patterns/get_ranked_posts"
---
test_name: Hivemind bridge_api.get_ranked_posts hot patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts hot patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"hot","tag":"","observer":"alice"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hot"
directory: "bridge_api_patterns/get_ranked_posts"
---
test_name: Hivemind bridge_api.get_ranked_posts muted patterns test
marks:
- patterntest
- failing
- xfail # empty results caused by lack of is_grayed handling (same as gray elsewhere)
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts muted patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"muted"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "muted"
directory: "bridge_api_patterns/get_ranked_posts"
---
test_name: Hivemind bridge_api.get_ranked_posts payout patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts payout patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"payout"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "payout"
directory: "bridge_api_patterns/get_ranked_posts"
---
test_name: Hivemind bridge_api.get_ranked_posts payout_comments patterns test
marks:
- patterntest
- failing
- xfail # gray
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts payout_comments patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"payout_comments"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "payout_comments"
directory: "bridge_api_patterns/get_ranked_posts"
---
test_name: Hivemind bridge_api.get_ranked_posts promoted patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts promoted patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"promoted"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "promoted"
directory: "bridge_api_patterns/get_ranked_posts"
---
test_name: Hivemind bridge_api.get_ranked_posts patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"trending","tag":"","observer":"steemit"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "steemit"
directory: "bridge_api_patterns/get_ranked_posts"
---
test_name: Hivemind bridge_api.get_ranked_posts tag hive-123 patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: bridge_api.get_ranked_posts tag hive-123 patterns test
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "bridge.get_ranked_posts"
params: {"sort":"trending","tag":"hive-123"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern </