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
  • 2mln_blocks_test
  • abw_rshares_experiment
  • bridge_get_account_posts
  • bw_ci_validating_test
  • bw_list_comments_by_permlink_opt_patterns
  • dk-5e6-patterns
  • dk-database-api-tests-001
  • dk-diff-log
  • dk-fix-order-in-some-tests
  • dk-follow-item-overwrite-fix
  • dk-follow-refactor
  • dk-functional-example
  • dk-list-votes-pre24
  • dk-mock-follow-tests
  • dk-mock-follow-tests-2
  • dk-mock-vops-tests
  • dk-pytest-benchmark
  • follow_api_tests
  • get_accounts
  • get_blog_entries
  • get_ranked_posts
  • issue_37_trend_and_hot
  • jsalyers-more-blacklist-updates
  • klesniak-api-tests-pyresttests
  • km_hafah_MR15
  • km_issue_151_revert
  • kmochocki/add-slow-call
  • kmochocki/ci
  • kmochocki/hivemind-testing
  • kudmich/prepare_tavern_tests_to_working_with_postgrest
  • master
  • mi_correct_notif_cache_update
  • mi_mention_date_changed
  • mi_notifications_in_cache
  • mi_test_for_bridge_get_ranked_posts
  • msochacki_tests
  • mt-47
  • mt-find-list-votes
  • mt-further-pids-refactoring
  • mt-further-pids-refactoring-old
  • mt-get-pids-fix
  • mt-get-profile-new-patterns
  • mt-grayed
  • mt-lack-of-post-forces-empty-pattern
  • mt-list-comments-fix
  • mt-main-unit
  • mt-pids-performance-refactoring
  • mz-hivemind-benchmark-parser
  • pczempiel_community
  • pczempiel_date_changes
  • pczempiel_new_tests
  • pmaniora_account_notifications_tests
  • pmaniora_communities_sql
  • pmaniora_community_fixes
  • pmaniora_fullsync_slow_calls
  • pmaniora_new_tests
  • request-execution-time
  • revert-36610d67
  • tmp
59 results

Target

Select target project
  • hive/tests_api
1 result
Select Git revision
  • 2mln_blocks_test
  • abw_rshares_experiment
  • bridge_get_account_posts
  • bw_ci_validating_test
  • bw_list_comments_by_permlink_opt_patterns
  • dk-5e6-patterns
  • dk-database-api-tests-001
  • dk-diff-log
  • dk-fix-order-in-some-tests
  • dk-follow-item-overwrite-fix
  • dk-follow-refactor
  • dk-functional-example
  • dk-list-votes-pre24
  • dk-mock-follow-tests
  • dk-mock-follow-tests-2
  • dk-mock-vops-tests
  • dk-pytest-benchmark
  • follow_api_tests
  • get_accounts
  • get_blog_entries
  • get_ranked_posts
  • issue_37_trend_and_hot
  • jsalyers-more-blacklist-updates
  • klesniak-api-tests-pyresttests
  • km_hafah_MR15
  • km_issue_151_revert
  • kmochocki/add-slow-call
  • kmochocki/ci
  • kmochocki/hivemind-testing
  • kudmich/prepare_tavern_tests_to_working_with_postgrest
  • master
  • mi_correct_notif_cache_update
  • mi_mention_date_changed
  • mi_notifications_in_cache
  • mi_test_for_bridge_get_ranked_posts
  • msochacki_tests
  • mt-47
  • mt-find-list-votes
  • mt-further-pids-refactoring
  • mt-further-pids-refactoring-old
  • mt-get-pids-fix
  • mt-get-profile-new-patterns
  • mt-grayed
  • mt-lack-of-post-forces-empty-pattern
  • mt-list-comments-fix
  • mt-main-unit
  • mt-pids-performance-refactoring
  • mz-hivemind-benchmark-parser
  • pczempiel_community
  • pczempiel_date_changes
  • pczempiel_new_tests
  • pmaniora_account_notifications_tests
  • pmaniora_communities_sql
  • pmaniora_community_fixes
  • pmaniora_fullsync_slow_calls
  • pmaniora_new_tests
  • request-execution-time
  • revert-36610d67
  • tmp
59 results
Show changes
Showing
with 555 additions and 3 deletions
[
[
"hive-135485",
"World News",
"guest",
""
],
[
"hive-171488",
"Hello",
"guest",
""
],
[
"hive-171487",
"Banana",
"guest",
""
],
[
"hive-186669",
"",
"guest",
""
],
[
"hive-104647",
"",
"guest",
""
]
]
---
test_name: Hivemind bridge_api.list_all_subscriptions patterns test roadscape
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: list_all_subscriptions roadscape
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.list_all_subscriptions"
params: {"account":"roadscape"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "roadscape"
directory: "bridge_api_patterns/list_all_subscriptions"
[
[
"hive-117600",
"",
"admin",
""
],
[
"hive-135485",
"World News",
"admin",
"Bill Gates"
],
[
"hive-171488",
"Hello",
"admin",
""
],
[
"hive-171487",
"Banana",
"admin",
""
],
[
"hive-165317",
"",
"guest",
""
]
]
---
test_name: Hivemind bridge_api.list_all_subscriptions patterns test test-safari
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: list_all_subscriptions test-safari
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.list_all_subscriptions"
params: {"account":"test-safari"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "test-safari"
directory: "bridge_api_patterns/list_all_subscriptions"
[
{
"about": "Banana-nothing.",
"admins": [
"test-safari"
],
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"id": 92472,
"is_nsfw": true,
"lang": "en",
"name": "hive-171487",
"num_authors": 0,
"num_pending": 0,
"subscribers": 4,
"sum_pending": 0,
"title": "Banana",
"type_id": 1
}
]
---
test_name: Hivemind bridge_api.list_communities patterns test hive-171487
# 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: list_communities hive-171487
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.list_communities"
params: {"last":"hive-171488", "limit":1}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hive-171487"
directory: "bridge_api_patterns/list_communities"
ignore_tags: ['admins'] # random order of admins
\ No newline at end of file
[
{
"about": "",
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"id": 92477,
"is_nsfw": false,
"lang": "en",
"name": "hive-186669",
"num_authors": 0,
"num_pending": 0,
"subscribers": 3,
"sum_pending": 0,
"title": "@hive-186669",
"type_id": 1
}
]
---
test_name: Hivemind bridge_api.list_communities 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: list_communities 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.list_communities"
params: {"last":"hive-171487", "limit":1}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hive-186669"
directory: "bridge_api_patterns/list_communities"
ignore_tags: ['admins'] # random order of admins
\ No newline at end of file
[
{
"about": "",
"admins": [
"test-safari",
"good-karma",
"abit"
],
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"id": 92475,
"is_nsfw": false,
"lang": "en",
"name": "hive-117600",
"num_authors": 3,
"num_pending": 6,
"subscribers": 2,
"sum_pending": 0,
"title": "@hive-117600",
"type_id": 1
},
{
"about": "A place for major news from around the world.",
"admins": [
"test-safari",
"blocktrades"
],
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"id": 92474,
"is_nsfw": true,
"lang": "en",
"name": "hive-135485",
"num_authors": 2,
"num_pending": 5,
"subscribers": 4,
"sum_pending": 0,
"title": "World News",
"type_id": 1
},
{
"about": "Nothing.",
"admins": [
"test-safari"
],
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"id": 92473,
"is_nsfw": true,
"lang": "en",
"name": "hive-171488",
"num_authors": 0,
"num_pending": 0,
"subscribers": 4,
"sum_pending": 0,
"title": "Hello",
"type_id": 1
},
{
"about": "Banana-nothing.",
"admins": [
"test-safari"
],
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"id": 92472,
"is_nsfw": true,
"lang": "en",
"name": "hive-171487",
"num_authors": 0,
"num_pending": 0,
"subscribers": 4,
"sum_pending": 0,
"title": "Banana",
"type_id": 1
},
{
"about": "",
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"id": 92477,
"is_nsfw": false,
"lang": "en",
"name": "hive-186669",
"num_authors": 0,
"num_pending": 0,
"subscribers": 3,
"sum_pending": 0,
"title": "@hive-186669",
"type_id": 1
},
{
"about": "",
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"id": 92481,
"is_nsfw": false,
"lang": "en",
"name": "hive-104647",
"num_authors": 0,
"num_pending": 0,
"subscribers": 2,
"sum_pending": 0,
"title": "@hive-104647",
"type_id": 1
},
{
"about": "",
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"id": 92476,
"is_nsfw": false,
"lang": "en",
"name": "hive-165317",
"num_authors": 0,
"num_pending": 0,
"subscribers": 2,
"sum_pending": 0,
"title": "@hive-165317",
"type_id": 1
},
{
"about": "",
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"id": 92480,
"is_nsfw": false,
"lang": "en",
"name": "hive-149232",
"num_authors": 0,
"num_pending": 0,
"subscribers": 1,
"sum_pending": 0,
"title": "@hive-149232",
"type_id": 1
},
{
"about": "",
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"id": 92479,
"is_nsfw": false,
"lang": "en",
"name": "hive-188204",
"num_authors": 0,
"num_pending": 0,
"subscribers": 1,
"sum_pending": 0,
"title": "@hive-188204",
"type_id": 1
},
{
"about": "",
"avatar_url": "",
"context": {},
"created_at": "2016-09-15 19:47:15",
"id": 92478,
"is_nsfw": false,
"lang": "en",
"name": "hive-103459",
"num_authors": 0,
"num_pending": 0,
"subscribers": 0,
"sum_pending": 0,
"title": "@hive-103459",
"type_id": 1
}
]
---
test_name: Hivemind bridge_api.list_communities patterns test max_limit
# 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: list_communities max_limit
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.list_communities"
params: {"limit":100}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "max_limit"
directory: "bridge_api_patterns/list_communities"
ignore_tags: ['admins'] # random order of admins
\ No newline at end of file
......@@ -27,3 +27,4 @@
extra_kwargs:
method: "one"
directory: "bridge_api_patterns/list_communities"
ignore_tags: ['admins'] # random order of admins
\ No newline at end of file
---
test_name: Hivemind bridge_api.list_communities patterns test page_2
# 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: list_communities page_2
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.list_communities"
params: {"last": "hive-103459", "limit":100}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "page_2"
directory: "bridge_api_patterns/list_communities"
ignore_tags: ['admins'] # random order of admins
\ No newline at end of file
---
test_name: Hivemind bridge_api.list_community_roles empty patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: list_community_roles empty
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.list_community_roles"
params: {"community":"hive-123456"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "empty"
directory: "bridge_api_patterns/list_community_roles"
[]
\ No newline at end of file
[
[
"hive-117600",
"owner",
""
],
[
"abit",
"admin",
""
],
[
"good-karma",
"admin",
""
],
[
"test-safari",
"admin",
""
],
[
"roadscape",
"mod",
""
],
[
"gtg",
"member",
""
]
]
......@@ -2,7 +2,7 @@
test_name: Hivemind bridge_api.list_community_roles patterns test
marks:
- patterntest # no nonempty result possible for 5mln set
- patterntest
includes:
- !include ../../common.yaml
......@@ -18,7 +18,7 @@
jsonrpc: "2.0"
id: 1
method: "bridge.list_community_roles"
params: {"community":"hive-123456"}
params: {"community":"hive-117600"}
response:
status_code: 200
verify_response_with:
......
[
[
"hive-186669",
"owner",
""
]
]
---
test_name: Hivemind bridge_api.list_community_roles no_roles patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: list_community_roles no_roles
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.list_community_roles"
params: {"community":"hive-186669"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "no_roles"
directory: "bridge_api_patterns/list_community_roles"