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
Commits on Source (4)
Showing
with 115 additions and 18 deletions
......@@ -70,6 +70,16 @@ PYTHONPATH=$PYTHONPATH:$(pwd) pytest -v -n auto --durations=0 .
PYTHONPATH=$PYTHONPATH:$(pwd) pytest -v -n auto --durations=0 <directory_name>
```
To Run Tavern full sync with specified URL PORT for hivemind node, that checks if API call returns results use:
```
./scripts/run_tests_full_sync.sh URL PORT
```
To Run Tavern full sync for pattern tests without checking patterns use:
```
./scripts/run_full_sync_tests.sh URL PORT ../tavern/
```
Remarks:
- To increase verbosity use `-vv` option instead of `-v`.
- `durations` option gives time measurement for tests, set to `0` will show durations of all tests. `Number` greater than zero will show only `number` slowest tests.
......
{
"code": -32602,
"data": "account not found: `hive-148441`",
"data": "account not found: `hive-197922`",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "Account hive-148441 does not exist",
"data": "Account hive-197922 does not exist",
"message": "Invalid parameters"
}
......@@ -3,6 +3,7 @@
marks:
- patterntest # communities not present in 5mln blocks
- negative
includes:
- !include ../../common.yaml
......@@ -18,13 +19,12 @@
jsonrpc: "2.0"
id: 1
method: "bridge.account_notifications"
params: {"account":"hive-148441","limit":50}
params: {"account":"hive-197922","limit":50}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hive-148441"
method: "hive-197922"
directory: "bridge_api_negative/account_notifications"
error_response: true
{
"code": -32602,
"data": "Account rollinshive does not exist",
"data": "Account rollinshive2 does not exist",
"message": "Invalid parameters"
}
......@@ -19,7 +19,7 @@
jsonrpc: "2.0"
id: 1
method: "bridge.get_account_posts"
params: {"sort":"comments","account":"rollinshive"}
params: {"sort":"comments","account":"rollinshive2"}
response:
status_code: 200
verify_response_with:
......
{
"code": -32602,
"data": "account not found: `rollinshive`",
"data": "account not found: `rollinshive2`",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "Account rollinshive does not exist",
"data": "Account rollinshive2 does not exist",
"message": "Invalid parameters"
}
......@@ -19,7 +19,7 @@
jsonrpc: "2.0"
id: 1
method: "bridge.get_account_posts"
params: {"sort":"feed","account":"rollinshive"}
params: {"sort":"feed","account":"rollinshive2"}
response:
status_code: 200
verify_response_with:
......
{
"code": -32602,
"data": "Account rollinshive does not exist",
"data": "Account rollinshive2 does not exist",
"message": "Invalid parameters"
}
......@@ -19,7 +19,7 @@
jsonrpc: "2.0"
id: 1
method: "bridge.get_account_posts"
params: {"sort":"payout","account":"rollinshive"}
params: {"sort":"payout","account":"rollinshive2"}
response:
status_code: 200
verify_response_with:
......
{
"code": -32602,
"data": "Account rollinshive does not exist",
"data": "Account rollinshive2 does not exist",
"message": "Invalid parameters"
}
......@@ -19,7 +19,7 @@
jsonrpc: "2.0"
id: 1
method: "bridge.get_account_posts"
params: {"sort":"posts","account":"rollinshive"}
params: {"sort":"posts","account":"rollinshive2"}
response:
status_code: 200
verify_response_with:
......
{
"code": -32602,
"data": "Account rollinshive does not exist",
"data": "Account rollinshive2 does not exist",
"message": "Invalid parameters"
}
---
test_name: Hivemind bridge.get_account_posts test not existing account (yet)
test_name: Hivemind bridge.get_account_posts test not existing account
marks:
- patterntest # original didn't test for account existence, only returned empty results
......@@ -19,7 +19,7 @@
jsonrpc: "2.0"
id: 1
method: "bridge.get_account_posts"
params: {"sort":"replies","account":"rollinshive","observer":null}
params: {"sort":"replies","account":"rollinshive2","observer":null}
response:
status_code: 200
verify_response_with:
......
......@@ -20,7 +20,7 @@
jsonrpc: "2.0"
id: 1
method: "bridge.get_community"
params: {"name":"hive-123456", "observer":"steemit"}
params: {"name":"hive-197922", "observer":"steemit"}
response:
status_code: 200
verify_response_with:
......
......@@ -4,3 +4,4 @@ markers =
patterntest: Mark tests using patterns to compare results
smoketest: Mark smoke tests
negative: Mark error tests
fullsynctest: mark full sync tests
---
test_name: Hivemind bridge_api.account_notifications
marks:
- fullsynctest
includes:
- !include ../../common.yaml
stages:
- name: account_notifications
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.account_notifications"
params: {"account": "chekohler"}
response:
status_code: 200
verify_response_with:
function: validate_response:has_valid_response
extra_kwargs:
method: "chekohler"
directory: "bridge_api_patterns/account_notifications"
---
test_name: Hivemind bridge_api.get_account_posts most posts
marks:
- fullsynctest
includes:
- !include ../../../common.yaml
stages:
- name: get_account_posts most 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":"blog", "account":"jlkreiss"}
response:
status_code: 200
verify_response_with:
function: validate_response:has_valid_response
extra_kwargs:
method: "most_posts"
directory: "bridge_api_patterns/get_account_posts/blog"
---
test_name: Hivemind bridge_api.get_account_posts steemitboard
marks:
- fullsynctest
includes:
- !include ../../../common.yaml
stages:
- name: get_account_posts steemitboard
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":"steemitboard"}
response:
status_code: 200
verify_response_with:
function: validate_response:has_valid_response
extra_kwargs:
method: "steemitboard"
directory: "bridge_api_patterns/get_account_posts/blog"