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