Commit 5e510260 authored by Pawel Maniora's avatar Pawel Maniora

Merge branch 'bridge_get_account_posts' of...

Merge branch 'bridge_get_account_posts' of https://gitlab.syncad.com/hive/tests_api into pmaniora_separate_tests
parents 3d969927 62519c66
---
test_name: Hivemind bridge.get_account_posts test
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":"replies","account":"gtg","observer":null}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "gtg"
directory: "bridge_api_patterns/get_account_posts"
\ No newline at end of file
---
test_name: Hivemind bridge.get_account_posts test
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":"gtg","observer":null}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "gtg_posts"
directory: "bridge_api_patterns/get_account_posts"
\ No newline at end of file
---
test_name: Hivemind bridge.get_account_posts test not existing account (yet)
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":"replies","account":"rollinshive","observer":null}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "rollinshive"
directory: "bridge_api_patterns/get_account_posts"
\ No newline at end of file
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