blob: b3118ff16855fbf1a8e3eaab3dbbdb7ba416bfaf [file] [log] [blame]
sslobodr1d1e50b2019-03-14 09:17:40 -04001{
2 "environment":{
3 "cmdLine":"afrouter -config arouter_test.json -logLevel 1",
4 "protoFiles": [
5 {
6 "importPath":"github.com/opencord/voltha-go/protos/",
7 "service":"VolthaService",
8 "package":"voltha"
9 },
10 {
11 "importPath":"github.com/opencord/voltha-go/protos/",
12 "service":"Configuration",
13 "package":"afrouter"
14 }
15 ],
16 "imports": [
17 "github.com/golang/protobuf/ptypes/empty",
18 "github.com/opencord/voltha-go/protos/openflow_13"
19 ],
20 "protoDesc":"voltha.pb",
21 "protoSubst": [
22 {
23 "from":"google.protobuf.Empty",
24 "to":"empty.Empty"
25 }
26 ],
27 "clients": {
28 "imports": [
29 "github.com/golang/protobuf/ptypes/empty",
30 "github.com/opencord/voltha-go/protos/openflow_13"
31 ],
32 "endpoints": [
33 {
34 "name":"client",
35 "port":"5000"
36 },
37 {
38 "name":"stats",
39 "port":"55554"
40 }
41 ]
42 },
43 "servers": {
44 "imports": [
45 "github.com/golang/protobuf/ptypes/empty",
46 "github.com/opencord/voltha-go/protos/openflow_13"
47 ],
48 "endpoints": [
49 {
50 "name":"core11",
51 "port":"5011"
52 },
53 {
54 "name":"core12",
55 "port":"5012"
56 },
57 {
58 "name":"core21",
59 "port":"5021"
60 },
61 {
62 "name":"core22",
63 "port":"5022"
64 },
65 {
66 "name":"core31",
67 "port":"5031"
68 },
69 {
70 "name":"core32",
71 "port":"5032"
72 },
73 {
74 "name":"roCore1",
75 "port":"5001"
76 },
77 {
78 "name":"roCore2",
79 "port":"5002"
80 },
81 {
82 "name":"roCore3",
83 "port":"5003"
84 }
85 ]
86 }
87 },
88 "tests":[
89 {{range $k,$v := .RoTests}}
90 {
91 "name":"{{$v.Name}}",
92 "send": {
93 "client":"client",
94 "method":"{{$v.Method}}",
95 "param":"{{$v.Param}}",
96 "expect":"{{$v.Expect}}",
97 "_meta":""
98 },
99 "servers": [
100 {
101 "name":"core{{$v.Core}}1",
102 "meta": [
103 {
104 "key":"voltha_serial_number",
105 "value":"{{$v.SerNo}}"
106 }
107 ]
108 },
109 {
110 "name":"core{{$v.Core}}2",
111 "meta": [
112 {
113 "key":"voltha_serial_number",
114 "value":"{{$v.SerNo}}"
115 }
116 ]
117 }
118 ]
119 },
120 {{end}}
121 {{range $k,$v := .RwTests}}
122 {
123 "name":"{{$v.Name}}",
124 "send": {
125 "client":"client",
126 "method":"{{$v.Method}}",
127 "param":"{{$v.Param}}",
128 "expect":"{{$v.Expect}}",
129 "_meta":""
130 },
131 "servers": [
132 {
133 "name":"core{{$v.Core}}1",
134 "meta": [
135 {
136 "key":"voltha_serial_number",
137 "value":"{{$v.SerNo}}"
138 }
139 ]
140 },
141 {
142 "name":"core{{$v.Core}}2",
143 "meta": [
144 {
145 "key":"voltha_serial_number",
146 "value":"{{$v.SerNo}}"
147 }
148 ]
149 }
150 ]
151 },
152 {{end}}
153 {{range $k,$v := .CtlTests}}
154 {
155 "name":"{{$v.Name}}",
156 "send": {
157 "client":"client",
158 "method":"{{$v.Method}}",
159 "param":"{{$v.Param}}",
160 "expect":"{{$v.Expect}}",
161 "_meta":""
162 },
163 "servers": [
164 {
165 "name":"core{{$v.Core}}1",
166 "meta": [
167 {
168 "key":"voltha_serial_number",
169 "value":"{{$v.SerNo}}"
170 }
171 ]
172 },
173 {
174 "name":"core{{$v.Core}}2",
175 "meta": [
176 {
177 "key":"voltha_serial_number",
178 "value":"{{$v.SerNo}}"
179 }
180 ]
181 }
182 ]
183 },
184 {{end}}
185 {
186 "name":"Test Subscribe",
187 "send": {
188 "client":"client",
189 "method":"Subscribe",
190 "param":"{OfagentId:\"Agent007\"}",
191 "meta": [
192 {
193 "key":"voltha_backend_name",
194 "value":""
195 }
196 ],
197 "expect":"{OfagentId:\"Agent007\",VolthaId:\"core11\"}",
198 "expectMeta": [
199 {
200 "key":"voltha_backend_name",
201 "value":"vcore1"
202 }
203 ]
204 },
205 "servers": [
206 {
207 "name":"core11",
208 "meta": [
209 {
210 "key":"voltha_serial_number",
211 "value":"44"
212 },
213 {
214 "key":"voltha_backend_name",
215 "value":""
216 }
217 ]
218 }
219 ]
220 },
221 {
222 "_COMMENT":"If this test case fails, there could be a goroutine leak",
223 "name":"Get goroutine count",
224 "send": {
225 "client":"stats",
226 "method":"GetGoroutineCount",
227 "param":"{}",
228 "meta": [ ],
229 "expect":"{Count:39}",
230 "expectMeta": [ ]
231 },
232 "servers": [ ]
233 }
234 ]
235}