Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • hive/tests_api
1 result
Select Git revision
Show changes
Showing
with 670 additions and 0 deletions
{
"about": "",
"avatar_url": "",
"context": {
"role": "mod",
"subscribed": false,
"title": ""
},
"created_at": "2016-09-15 19:47:15",
"description": "",
"flag_text": "",
"id": 92475,
"is_nsfw": false,
"lang": "en",
"name": "hive-117600",
"num_authors": 3,
"num_pending": 6,
"settings": {},
"subscribers": 2,
"sum_pending": 0,
"team": [
[
"hive-117600",
"owner",
""
],
[
"test-safari",
"admin",
""
],
[
"good-karma",
"admin",
""
],
[
"abit",
"admin",
""
],
[
"roadscape",
"mod",
""
]
],
"title": "@hive-117600",
"type_id": 1
}
---
test_name: Hivemind bridge_api.get_community patterns test hive-117600 mod
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
# Communities not implemented under 5 mln blocks, but some were created by mock mechanism, therefore they are in result.
includes:
- !include ../../common.yaml
stages:
- name: get_community hive-117600 mod
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_community"
params: {"name":"hive-117600", "observer": "roadscape"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hive-117600_mod"
directory: "bridge_api_patterns/get_community"
{
"about": "",
"avatar_url": "",
"context": {
"role": "guest",
"subscribed": false,
"title": ""
},
"created_at": "2016-09-15 19:47:15",
"description": "",
"flag_text": "",
"id": 92475,
"is_nsfw": false,
"lang": "en",
"name": "hive-117600",
"num_authors": 3,
"num_pending": 6,
"settings": {},
"subscribers": 2,
"sum_pending": 0,
"team": [
[
"hive-117600",
"owner",
""
],
[
"test-safari",
"admin",
""
],
[
"good-karma",
"admin",
""
],
[
"abit",
"admin",
""
],
[
"roadscape",
"mod",
""
]
],
"title": "@hive-117600",
"type_id": 1
}
---
test_name: Hivemind bridge_api.get_community patterns test hive-117600 non subscribed guest
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
# Communities not implemented under 5 mln blocks, but some were created by mock mechanism, therefore they are in result.
includes:
- !include ../../common.yaml
stages:
- name: get_community hive-117600 non subscribed guest
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_community"
params: {"name":"hive-117600", "observer": "dan"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hive-117600_non_subscribed_guest"
directory: "bridge_api_patterns/get_community"
{
"about": "",
"avatar_url": "",
"context": {
"role": "member",
"subscribed": false,
"title": ""
},
"created_at": "2016-09-15 19:47:15",
"description": "",
"flag_text": "",
"id": 92475,
"is_nsfw": false,
"lang": "en",
"name": "hive-117600",
"num_authors": 3,
"num_pending": 6,
"settings": {},
"subscribers": 2,
"sum_pending": 0,
"team": [
[
"hive-117600",
"owner",
""
],
[
"test-safari",
"admin",
""
],
[
"good-karma",
"admin",
""
],
[
"abit",
"admin",
""
],
[
"roadscape",
"mod",
""
]
],
"title": "@hive-117600",
"type_id": 1
}
---
test_name: Hivemind bridge_api.get_community patterns test hive-117600 non subscribed member
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
# Communities not implemented under 5 mln blocks, but some were created by mock mechanism, therefore they are in result.
includes:
- !include ../../common.yaml
stages:
- name: get_community hive-117600 subscribed guest
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_community"
params: {"name":"hive-117600", "observer": "gtg"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hive-117600_non_subscribed_member"
directory: "bridge_api_patterns/get_community"
{
"about": "",
"avatar_url": "",
"context": {
"role": "owner",
"subscribed": false,
"title": ""
},
"created_at": "2016-09-15 19:47:15",
"description": "",
"flag_text": "",
"id": 92475,
"is_nsfw": false,
"lang": "en",
"name": "hive-117600",
"num_authors": 3,
"num_pending": 6,
"settings": {},
"subscribers": 2,
"sum_pending": 0,
"team": [
[
"hive-117600",
"owner",
""
],
[
"test-safari",
"admin",
""
],
[
"good-karma",
"admin",
""
],
[
"abit",
"admin",
""
],
[
"roadscape",
"mod",
""
]
],
"title": "@hive-117600",
"type_id": 1
}
---
test_name: Hivemind bridge_api.get_community patterns test hive-117600 owner
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
# Communities not implemented under 5 mln blocks, but some were created by mock mechanism, therefore they are in result.
includes:
- !include ../../common.yaml
stages:
- name: get_community hive-117600 owner
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_community"
params: {"name":"hive-117600", "observer": "hive-117600"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hive-117600_owner"
directory: "bridge_api_patterns/get_community"
{
"about": "A place for major news from around the world.",
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"description": "",
"flag_text": "",
"id": 92474,
"is_nsfw": true,
"lang": "en",
"name": "hive-135485",
"num_authors": 2,
"num_pending": 5,
"settings": {},
"subscribers": 4,
"sum_pending": 0,
"team": [
[
"hive-135485",
"owner",
""
],
[
"test-safari",
"admin",
"Bill Gates"
],
[
"blocktrades",
"admin",
""
]
],
"title": "World News",
"type_id": 1
}
---
test_name: Hivemind bridge_api.get_community patterns test hive-135485
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
# Communities not implemented under 5 mln blocks, but some were created by mock mechanism, therefore they are in result.
includes:
- !include ../../common.yaml
stages:
- name: get_community hive-135485
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_community"
params: {"name":"hive-135485"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hive-135485"
directory: "bridge_api_patterns/get_community"
{
"about": "",
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"description": "",
"flag_text": "",
"id": 92480,
"is_nsfw": false,
"lang": "en",
"name": "hive-149232",
"num_authors": 0,
"num_pending": 0,
"settings": {},
"subscribers": 1,
"sum_pending": 0,
"team": [
[
"hive-149232",
"owner",
""
]
],
"title": "@hive-149232",
"type_id": 1
}
---
test_name: Hivemind bridge_api.get_community patterns test hive-149232
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
# Communities not implemented under 5 mln blocks, but some were created by mock mechanism, therefore they are in result.
includes:
- !include ../../common.yaml
stages:
- name: get_community hive-149232
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_community"
params: {"name":"hive-149232"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hive-149232"
directory: "bridge_api_patterns/get_community"
{
"about": "",
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"description": "",
"flag_text": "",
"id": 92476,
"is_nsfw": false,
"lang": "en",
"name": "hive-165317",
"num_authors": 0,
"num_pending": 0,
"settings": {},
"subscribers": 2,
"sum_pending": 0,
"team": [
[
"hive-165317",
"owner",
""
]
],
"title": "@hive-165317",
"type_id": 1
}
---
test_name: Hivemind bridge_api.get_community patterns test hive-165317
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
# Communities not implemented under 5 mln blocks, but some were created by mock mechanism, therefore they are in result.
includes:
- !include ../../common.yaml
stages:
- name: get_community hive-165317
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_community"
params: {"name":"hive-165317"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hive-165317"
directory: "bridge_api_patterns/get_community"
{
"about": "Banana-nothing.",
"avatar_url": "",
"context": {
"role": "guest",
"subscribed": true,
"title": ""
},
"created_at": "2016-09-15 19:47:15",
"description": "Cherry",
"flag_text": "Lemon",
"id": 92472,
"is_nsfw": true,
"lang": "en",
"name": "hive-171487",
"num_authors": 0,
"num_pending": 0,
"settings": {},
"subscribers": 4,
"sum_pending": 0,
"team": [
[
"hive-171487",
"owner",
""
],
[
"test-safari",
"admin",
""
]
],
"title": "Banana",
"type_id": 1
}
---
test_name: Hivemind bridge_api.get_community patterns test hive-171487 subscribed guest
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
# Communities not implemented under 5 mln blocks, but some were created by mock mechanism, therefore they are in result.
includes:
- !include ../../common.yaml
stages:
- name: get_community hive-171487 subscribed guest
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_community"
params: {"name":"hive-171487", "observer": "gtg"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hive-171487_subscribed_guest"
directory: "bridge_api_patterns/get_community"
{
"about": "Nothing.",
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"description": "Nothing",
"flag_text": "Lol",
"id": 92473,
"is_nsfw": true,
"lang": "en",
"name": "hive-171488",
"num_authors": 0,
"num_pending": 0,
"settings": {},
"subscribers": 4,
"sum_pending": 0,
"team": [
[
"hive-171488",
"owner",
""
],
[
"test-safari",
"admin",
""
]
],
"title": "Hello",
"type_id": 1
}
---
test_name: Hivemind bridge_api.get_community patterns test hive-171488
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
# Communities not implemented under 5 mln blocks, but some were created by mock mechanism, therefore they are in result.
includes:
- !include ../../common.yaml
stages:
- name: get_community hive-171488
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_community"
params: {"name":"hive-171488"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hive-171488"
directory: "bridge_api_patterns/get_community"
{
"about": "",
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"description": "",
"flag_text": "",
"id": 92477,
"is_nsfw": false,
"lang": "en",
"name": "hive-186669",
"num_authors": 0,
"num_pending": 0,
"settings": {},
"subscribers": 3,
"sum_pending": 0,
"team": [
[
"hive-186669",
"owner",
""
]
],
"title": "@hive-186669",
"type_id": 1
}
---
test_name: Hivemind bridge_api.get_community patterns test hive-186669
# not documented on https://developers.hive.io/apidefinitions/#apidefinitions-bridge
marks:
- patterntest
# Communities not implemented under 5 mln blocks, but some were created by mock mechanism, therefore they are in result.
includes:
- !include ../../common.yaml
stages:
- name: get_community hive-186669
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_community"
params: {"name":"hive-186669"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hive-186669"
directory: "bridge_api_patterns/get_community"