Commit 928df307 authored by Mariusz's avatar Mariusz

New test for `get_profile` call

parent 3ddedc6e
{
"active": "1970-01-01T00:00:00",
"blacklists": [],
"created": "2016-09-12T00:16:18",
"id": 90428,
"metadata": {
"profile": {
"about": null,
"cover_image": "",
"location": null,
"name": null,
"profile_image": "",
"website": null
}
},
"name": "davr86",
"post_count": 0,
"reputation": 25.0,
"stats": {
"followers": 0,
"following": 0,
"rank": 0,
"sp": 0
}
}
{
"active": "2016-09-12T00:38:57",
"blacklists": [],
"created": "2016-09-12T00:16:15",
"id": 90428,
"metadata": {
"profile": {
"about": "",
"cover_image": "",
"location": "",
"name": "",
"profile_image": "https://res.cloudinary.com/esteem/image/upload/v1473700515/image_kmx87g.jpg",
"website": ""
}
},
"name": "davr86",
"post_count": 0,
"reputation": 25.0,
"stats": {
"followers": 0,
"following": 0,
"rank": 0
}
}
---
test_name: Hivemind bridge_api.get_profile davr86 patterns test
#not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_profile davr86
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_profile"
params: {"account":"davr86"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "davr86"
directory: "bridge_api_patterns/get_profile"
......@@ -7,7 +7,7 @@
"comments": [],
"created": "2016-03-24 17:00:21",
"feed": [],
"json_metadata": "{\"profile\":{\"name\":null,\"about\":null,\"website\":null,\"location\":null,\"cover_image\":\"\",\"profile_image\":\"\"}}",
"json_metadata": "{\"profile\":{\"name\":\"\",\"about\":\"\",\"website\":\"\",\"location\":\"\",\"cover_image\":\"\",\"profile_image\":\"\"}}",
"name": "steemit",
"net_vesting_shares": 0,
"post_count": 1,
......
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