File tree Expand file tree Collapse file tree 1 file changed +40
-2
lines changed Expand file tree Collapse file tree 1 file changed +40
-2
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,58 @@ schemas = require '../../schema/schemas.js'
3
3
tv4 = require ' tv4'
4
4
5
5
validExamples =
6
- ' typical start' :
6
+ ' start recording ' :
7
7
protocol : ' trace'
8
8
command : ' start'
9
9
payload :
10
10
graph : ' mygraph'
11
11
secret : ' verygood'
12
+ ' dump flowtrace.json' :
13
+ protocol : ' trace'
14
+ command : ' dump'
15
+ payload :
16
+ graph : ' mygraph'
17
+ secret : ' verygood'
18
+ type : ' flowtrace.json'
19
+ ' clear buffer' :
20
+ protocol : ' trace'
21
+ command : ' clear'
22
+ payload :
23
+ graph : ' mygraph'
24
+ secret : ' verygood'
25
+ ' stop recording' :
26
+ protocol : ' trace'
27
+ command : ' stop'
28
+ payload :
29
+ graph : ' mygraph'
30
+ secret : ' verygood'
12
31
13
32
invalidExamples =
14
- ' invalid graph id' :
33
+ ' start with invalid graph id' :
15
34
protocol : ' trace'
16
35
command : ' start'
17
36
payload :
18
37
graph : 112.0
19
38
secret : ' nnice'
39
+ ' dump with invalid type' :
40
+ protocol : ' trace'
41
+ command : ' dump'
42
+ payload :
43
+ graph : ' mygraph'
44
+ secret : ' verygood'
45
+ type : ' not-a-valid-trace-type'
46
+ ' stop with missing secret' :
47
+ protocol : ' trace'
48
+ command : ' start'
49
+ payload :
50
+ graph : 112.0
51
+ secret : undefined
52
+ ' clear without graph' :
53
+ protocol : ' trace'
54
+ command : ' start'
55
+ payload :
56
+ graph : undefined
57
+ secret : ' verygood'
20
58
21
59
testValid = (name ) ->
22
60
describe name, ->
You can’t perform that action at this time.
0 commit comments