|
1 | 1 | [
|
2 | 2 | {
|
3 |
| - "description": "Read fails when text is empty", |
| 3 | + "description": "Read fails when text is empty or too many attachments", |
4 | 4 | "action": {
|
5 | 5 | "type": "send_msg",
|
6 | 6 | "uuid": "ad154980-7bf7-4ab8-8728-545fd6378912",
|
7 | 7 | "text": "",
|
8 | 8 | "attachments": [
|
9 |
| - "image:http://example.com/red.jpg" |
| 9 | + "image:http://example.com/1.jpg", |
| 10 | + "image:http://example.com/2.jpg", |
| 11 | + "image:http://example.com/3.jpg", |
| 12 | + "image:http://example.com/4.jpg", |
| 13 | + "image:http://example.com/5.jpg", |
| 14 | + "image:http://example.com/6.jpg", |
| 15 | + "image:http://example.com/7.jpg", |
| 16 | + "image:http://example.com/8.jpg", |
| 17 | + "image:http://example.com/9.jpg", |
| 18 | + "image:http://example.com/10.jpg", |
| 19 | + "image:http://example.com/11.jpg" |
| 20 | + ], |
| 21 | + "quick_replies": [ |
| 22 | + "1", |
| 23 | + "2", |
| 24 | + "3", |
| 25 | + "4", |
| 26 | + "5", |
| 27 | + "6", |
| 28 | + "7", |
| 29 | + "8", |
| 30 | + "9", |
| 31 | + "10", |
| 32 | + "11" |
10 | 33 | ]
|
11 | 34 | },
|
12 |
| - "read_error": "field 'text' is required" |
| 35 | + "read_error": "field 'text' is required, field 'attachments' must have a maximum of 10 items, field 'quick_replies' must have a maximum of 10 items" |
13 | 36 | },
|
14 | 37 | {
|
15 |
| - "description": "Read fails when topic is invalid", |
| 38 | + "description": "Read fails when topic is invalid or a quick reply is too long", |
16 | 39 | "action": {
|
17 | 40 | "type": "send_msg",
|
18 | 41 | "uuid": "ad154980-7bf7-4ab8-8728-545fd6378912",
|
19 | 42 | "text": "hi there",
|
20 |
| - "topic": "spam" |
| 43 | + "topic": "spam", |
| 44 | + "quick_replies": [ |
| 45 | + "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" |
| 46 | + ] |
21 | 47 | },
|
22 |
| - "read_error": "field 'topic' is not a valid message topic" |
| 48 | + "read_error": "field 'quick_replies[0]' must be less than or equal to 64, field 'topic' is not a valid message topic" |
23 | 49 | },
|
24 | 50 | {
|
25 | 51 | "description": "Error events if msg text, attachments and quick replies have expression errors",
|
|
197 | 223 | "text": "Hi there",
|
198 | 224 | "quick_replies": [
|
199 | 225 | "yes",
|
200 |
| - "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." |
| 226 | + "@(repeat(\"1234567890\", 10))" |
201 | 227 | ]
|
202 | 228 | },
|
203 | 229 | "events": [
|
|
218 | 244 | "text": "yes"
|
219 | 245 | },
|
220 | 246 | {
|
221 |
| - "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed ..." |
| 247 | + "text": "1234567890123456789012345678901234567890123456789012345678901..." |
222 | 248 | }
|
223 | 249 | ],
|
224 | 250 | "locale": "eng-US"
|
|
0 commit comments