Skip to content
Snippets Groups Projects
Commit 538e26be authored by Michal Zander's avatar Michal Zander
Browse files

Adjust pattern test

parent 7deae14b
No related branches found
No related tags found
1 merge request!298Unify API returns to sql composite types
......@@ -343,7 +343,7 @@ IF "path-filter" IS NOT NULL AND "path-filter" != '{}' THEN
),
haf_keys AS
(
SELECT jsonb_array_elements_text(hafah_endpoints.get_operation_keys((SELECT unnest(_operation_types)))) AS keys
SELECT json_array_elements_text(hafah_endpoints.get_operation_keys((SELECT unnest(_operation_types)))) AS keys
),
check_if_given_keys_are_correct AS
(
......
......@@ -27,10 +27,10 @@
"delegated_vesting_shares": "0",
"received_vesting_shares": "0",
"proxied_vsf_votes": [
4983403929606734,
0,
0,
0
"4983403929606734",
"0",
"0",
"0"
],
"withdrawn": "804048182205290",
"vesting_withdraw_rate": "80404818220529",
......
......@@ -27,10 +27,10 @@
"delegated_vesting_shares": "0",
"received_vesting_shares": "0",
"proxied_vsf_votes": [
30348411941678,
498714253762,
0,
0
"30348411941678",
"498714253762",
"0",
"0"
],
"withdrawn": "0",
"vesting_withdraw_rate": "0",
......
{
"id": null,
"name": "themarkymark",
"can_vote": true,
"mined": true,
"proxy": "",
"recovery_account": "",
"last_account_recovery": "1970-01-01T00:00:00",
"created": "1970-01-01T00:00:00",
"reputation": 0,
"json_metadata": "",
"posting_json_metadata": "",
"profile_image": "",
"hbd_balance": 0,
"balance": 0,
"vesting_shares": "0",
"vesting_balance": 0,
"hbd_saving_balance": 0,
"savings_balance": 0,
"savings_withdraw_requests": 0,
"reward_hbd_balance": 0,
"reward_hive_balance": 0,
"reward_vesting_balance": "0",
"reward_vesting_hive": 0,
"posting_rewards": "0",
"curation_rewards": "0",
"delegated_vesting_shares": "0",
"received_vesting_shares": "0",
"proxied_vsf_votes": [
0,
0,
0,
0
],
"withdrawn": "0",
"vesting_withdraw_rate": "0",
"to_withdraw": "0",
"withdraw_routes": 0,
"delayed_vests": "0",
"witness_votes": [],
"witnesses_voted_for": 0,
"ops_count": 0,
"is_witness": false
"code": "P0001",
"details": null,
"hint": null,
"message": "Account 'themarkymark' does not exist"
}
\ No newline at end of file
......@@ -3,6 +3,7 @@
marks:
- patterntest
- negative
includes:
- !include ../common.yaml
......@@ -18,6 +19,8 @@
json:
account-name: "themarkymark"
response:
status_code: 200
status_code: 400
verify_response_with:
function: validate_response:compare_rest_response_with_pattern
extra_kwargs:
error_response: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment