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

Target

Select target project
  • hive/tests_api
1 result
Show changes
Commits on Source (5)
Showing
with 33 additions and 28 deletions
{
"code": -32602,
"data": "community not found",
"data": "Community hive-197922 does not exist",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "account not found: `nonexisting`",
"data": "Account nonexisting does not exist",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "community not found",
"data": "Community Hive Gaming does not exist",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "account not found: `nonexisting`",
"data": "Account nonexisting does not exist",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "account not found: `wyuh`",
"data": "Account wyuh does not exist",
"message": "Invalid parameters"
}
{
"code": -32602,
"data": "Community hive-123456 does not exist",
"message": "Invalid parameters"
}
---
test_name: Hivemind bridge_api.list_community_roles empty patterns test
test_name: Hivemind bridge_api.list_community_roles
marks:
- patterntest
- patterntest # original did not validate community
- negative
includes:
- !include ../../common.yaml
stages:
- name: list_community_roles empty
- name: list_community_roles
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
......@@ -24,5 +25,6 @@
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "empty"
directory: "bridge_api_patterns/list_community_roles"
method: "community_not_found"
directory: "bridge_api_negative/list_community_roles"
error_response: true
[]
{
"code": -32602,
"data": "Community 789 does not exist",
"message": "Invalid parameters"
}
......@@ -2,9 +2,8 @@
test_name: bridge_api.list_subscribers account error # not documented
marks:
- patterntest
- patterntest # original did not validate community
- negative
- xfail # error should be generated here, but we get empty result (like in original)
includes:
- !include ../../common.yaml
......
{
"code": -32602,
"data": "missing a required argument: 'community'",
"data": "Community hive-197922 does not exist",
"message": "Invalid parameters"
}
......@@ -2,9 +2,8 @@
test_name: bridge_api.list_subscribers community not found
marks:
- patterntest
- patterntest # original did not validate community
- negative
- xfail # is there should be an error that community not exists?
includes:
- !include ../../common.yaml
......
{
"code": -32000,
"data": "UndefinedFunction: operator does not exist: character varying = integer\nLINE 1: SELECT id FROM hive_communities WHERE name = 789\n ^\nHINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.\n",
"message": "Server error"
"code": -32602,
"data": "Community 789 does not exist",
"message": "Invalid parameters"
}
......@@ -2,7 +2,7 @@
test_name: bridge_api.list_subscribers undefined operator # not documented
marks:
- patterntest # change it into proper error, server error, especially from SQL, is not good enough
- patterntest # used to have a bug related to invalid call when nonstring was passed
- negative
includes:
......
......@@ -27,4 +27,3 @@
extra_kwargs:
method: "hive-171487"
directory: "bridge_api_patterns/list_communities"
ignore_tags: ['admins'] # random order of admins
\ No newline at end of file
......@@ -27,4 +27,3 @@
extra_kwargs:
method: "hive-186669"
directory: "bridge_api_patterns/list_communities"
ignore_tags: ['admins'] # random order of admins
\ No newline at end of file
......@@ -2,9 +2,9 @@
{
"about": "",
"admins": [
"test-safari",
"abit",
"good-karma",
"abit"
"test-safari"
],
"avatar_url": "",
"context": {},
......@@ -23,8 +23,8 @@
{
"about": "A place for major news from around the world.",
"admins": [
"test-safari",
"blocktrades"
"blocktrades",
"test-safari"
],
"avatar_url": "",
"context": {},
......
......@@ -27,4 +27,3 @@
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,4 +27,3 @@
extra_kwargs:
method: "one"
directory: "bridge_api_patterns/list_communities"
ignore_tags: ['admins'] # random order of admins
\ No newline at end of file