Skip to content
Snippets Groups Projects
Commit 3a3048a3 authored by Dariusz Kędzierski's avatar Dariusz Kędzierski
Browse files

Fixes sql syntax error detected with mock tests. Extended mock file

parent 290d993c
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!346Escape characters in user names provided in follow_op
......@@ -361,7 +361,7 @@ class Follow(DbAdapterHolder):
UPDATE
hive_follows hf
SET
hf.follow_blacklists = true
follow_blacklists = true
FROM
(
SELECT
......
......@@ -380,7 +380,26 @@
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [],
"transactions": [
{
"ref_block_num": 100001,
"ref_block_prefix": 1,
"expiration": "2020-03-23T12:17:00",
"operations": [
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"tester1"
],
"id": "follow",
"json": "[\"follow\",{\"follower\":\"tester1\",\"following\":\"tester2\",\"what\":[\"ignore\"]}]"
}
}
]
}
],
"block_id": "004c4b4200000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
......@@ -392,7 +411,26 @@
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [],
"transactions": [
{
"ref_block_num": 100001,
"ref_block_prefix": 1,
"expiration": "2020-03-23T12:17:00",
"operations": [
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"tester1"
],
"id": "follow",
"json": "[\"follow\",{\"follower\":\"tester1\",\"following\":\"tester2\",\"what\":[\"blacklist\"]}]"
}
}
]
}
],
"block_id": "004c4b4300000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
......@@ -404,7 +442,26 @@
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [],
"transactions": [
{
"ref_block_num": 100001,
"ref_block_prefix": 1,
"expiration": "2020-03-23T12:17:00",
"operations": [
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"tester1"
],
"id": "follow",
"json": "[\"follow\",{\"follower\":\"tester1\",\"following\":\"tester2\",\"what\":[\"follow_blacklist\"]}]"
}
}
]
}
],
"block_id": "004c4b4400000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
......@@ -416,7 +473,26 @@
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [],
"transactions": [
{
"ref_block_num": 100001,
"ref_block_prefix": 1,
"expiration": "2020-03-23T12:17:00",
"operations": [
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"tester1"
],
"id": "follow",
"json": "[\"follow\",{\"follower\":\"tester1\",\"following\":\"tester2\",\"what\":[\"unblacklist\"]}]"
}
}
]
}
],
"block_id": "004c4b4500000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
......@@ -428,9 +504,293 @@
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [],
"transactions": [
{
"ref_block_num": 100001,
"ref_block_prefix": 1,
"expiration": "2020-03-23T12:17:00",
"operations": [
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"tester1"
],
"id": "follow",
"json": "[\"follow\",{\"follower\":\"tester1\",\"following\":\"tester2\",\"what\":[\"unfollow_blacklist\"]}]"
}
}
]
}
],
"block_id": "004c4b4600000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
},
"5000007": {
"previous": "004c4b4600000000000000000000000000000000",
"timestamp": "2016-09-15T19:47:39",
"witness": "initminer",
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [
{
"ref_block_num": 100001,
"ref_block_prefix": 1,
"expiration": "2020-03-23T12:17:00",
"operations": [
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"tester1"
],
"id": "follow",
"json": "[\"follow\",{\"follower\":\"tester1\",\"following\":\"tester2\",\"what\":[\"follow_muted\"]}]"
}
}
]
}
],
"block_id": "004c4b4700000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
},
"5000008": {
"previous": "004c4b4700000000000000000000000000000000",
"timestamp": "2016-09-15T19:47:39",
"witness": "initminer",
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [
{
"ref_block_num": 100001,
"ref_block_prefix": 1,
"expiration": "2020-03-23T12:17:00",
"operations": [
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"tester1"
],
"id": "follow",
"json": "[\"follow\",{\"follower\":\"tester1\",\"following\":\"tester2\",\"what\":[\"unfollow_muted\"]}]"
}
}
]
}
],
"block_id": "004c4b4800000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
},
"5000009": {
"previous": "004c4b4800000000000000000000000000000000",
"timestamp": "2016-09-15T19:47:39",
"witness": "initminer",
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [
{
"ref_block_num": 100001,
"ref_block_prefix": 1,
"expiration": "2020-03-23T12:17:00",
"operations": [
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"tester1"
],
"id": "follow",
"json": "[\"follow\",{\"follower\":\"tester1\",\"following\":\"tester2\",\"what\":[\"reset_blacklist\"]}]"
}
}
]
}
],
"block_id": "004c4b4900000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
},
"5000010": {
"previous": "004c4b4900000000000000000000000000000000",
"timestamp": "2016-09-15T19:47:39",
"witness": "initminer",
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [
{
"ref_block_num": 100001,
"ref_block_prefix": 1,
"expiration": "2020-03-23T12:17:00",
"operations": [
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"tester1"
],
"id": "follow",
"json": "[\"follow\",{\"follower\":\"tester1\",\"following\":\"tester2\",\"what\":[\"reset_following_list\"]}]"
}
}
]
}
],
"block_id": "004c4b4a00000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
},
"5000011": {
"previous": "004c4b4a00000000000000000000000000000000",
"timestamp": "2016-09-15T19:47:39",
"witness": "initminer",
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [
{
"ref_block_num": 100001,
"ref_block_prefix": 1,
"expiration": "2020-03-23T12:17:00",
"operations": [
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"tester1"
],
"id": "follow",
"json": "[\"follow\",{\"follower\":\"tester1\",\"following\":\"tester2\",\"what\":[\"reset_follow_blacklist\"]}]"
}
}
]
}
],
"block_id": "004c4b4b00000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
},
"5000012": {
"previous": "004c4b4b00000000000000000000000000000000",
"timestamp": "2016-09-15T19:47:39",
"witness": "initminer",
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [
{
"ref_block_num": 100001,
"ref_block_prefix": 1,
"expiration": "2020-03-23T12:17:00",
"operations": [
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"tester1"
],
"id": "follow",
"json": "[\"follow\",{\"follower\":\"tester1\",\"following\":\"tester2\",\"what\":[\"reset_follow_muted_list\"]}]"
}
}
]
}
],
"block_id": "004c4b4c00000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
},
"5000013": {
"previous": "004c4b4c00000000000000000000000000000000",
"timestamp": "2016-09-15T19:47:39",
"witness": "initminer",
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [
{
"ref_block_num": 100001,
"ref_block_prefix": 1,
"expiration": "2020-03-23T12:17:00",
"operations": [
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"tester1"
],
"id": "follow",
"json": "[\"follow\",{\"follower\":\"tester1\",\"following\":\"tester2\",\"what\":[\"reset_all_lists\"]}]"
}
}
]
}
],
"block_id": "004c4b4d00000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
},
"5000014": {
"previous": "004c4b4d00000000000000000000000000000000",
"timestamp": "2016-09-15T19:47:39",
"witness": "initminer",
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [],
"block_id": "004c4b4e00000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
},
"5000015": {
"previous": "004c4b4e00000000000000000000000000000000",
"timestamp": "2016-09-15T19:47:39",
"witness": "initminer",
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [],
"block_id": "004c4b4f00000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
},
"5000016": {
"previous": "004c4b4f00000000000000000000000000000000",
"timestamp": "2016-09-15T19:47:39",
"witness": "initminer",
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [],
"block_id": "004c4b5000000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
},
"5000017": {
"previous": "004c4b5000000000000000000000000000000000",
"timestamp": "2016-09-15T19:47:39",
"witness": "initminer",
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [],
"witness_signature": "",
"transactions": [],
"block_id": "004c4b5100000000000000000000000000000000",
"signing_key": "",
"transaction_ids": []
}
}
\ No newline at end of file
Subproject commit c3c830a24079e47e59ebdd91a9670c905d6edfff
Subproject commit 8aac0997c0ad0ea62d8d3fe2a38e5f0d24951380
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