blob: b11ccec8280d17dc49f0f7c53273b55ad2535cff [file] [log] [blame]
sslobodrd6e07e72019-01-31 16:07:20 -05001{
2 "environment":{
sslobodr1d1e50b2019-03-14 09:17:40 -04003 "cmdLine":"afrouter -logLevel 1 -config arouter_test.json",
sslobodrd6e07e72019-01-31 16:07:20 -05004 "protoFiles": [
5 {
William Kurkiandaa6bb22019-03-07 12:26:28 -05006 "importPath":"github.com/opencord/voltha-protos/go/",
sslobodrd6e07e72019-01-31 16:07:20 -05007 "service":"VolthaService",
8 "package":"voltha"
sslobodr1d1e50b2019-03-14 09:17:40 -04009 },
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 "Junk": [
17 {
David Bainbridge142516e2019-04-19 01:34:58 +000018 "importPath":"github.com/opencord/voltha-protos/go/",
sslobodr1d1e50b2019-03-14 09:17:40 -040019 "service":"Configuration",
20 "package":"afrouter"
sslobodrd6e07e72019-01-31 16:07:20 -050021 }
22 ],
23 "imports": [
Kent Hagerman1b9c7062019-05-07 16:46:01 -040024 "github.com/opencord/voltha-protos/go/common"
sslobodrd6e07e72019-01-31 16:07:20 -050025 ],
26 "protoDesc":"voltha.pb",
27 "protoSubst": [
28 {
29 "from":"google.protobuf.Empty",
30 "to":"empty.Empty"
31 }
32 ],
sslobodr1d1e50b2019-03-14 09:17:40 -040033 "clients": {
34 "imports": [
Kent Hagerman1b9c7062019-05-07 16:46:01 -040035 "github.com/golang/protobuf/ptypes/empty",
36 "github.com/opencord/voltha-protos/go/openflow_13",
37 "github.com/opencord/voltha-protos/go/common"
sslobodr1d1e50b2019-03-14 09:17:40 -040038 ],
39 "endpoints": [
40 {
41 "name":"client",
42 "port":"5000"
43 },
44 {
45 "name":"stats",
46 "port":"55554"
47 }
48 ]
49 },
50 "servers": {
51 "imports": [
Kent Hagerman1b9c7062019-05-07 16:46:01 -040052 "github.com/golang/protobuf/ptypes/empty",
53 "github.com/opencord/voltha-protos/go/openflow_13",
54 "github.com/opencord/voltha-protos/go/common",
55 "github.com/opencord/voltha-protos/go/omci"
sslobodr1d1e50b2019-03-14 09:17:40 -040056 ],
57 "endpoints": [
sslobodrd6e07e72019-01-31 16:07:20 -050058 {
59 "name":"core11",
60 "port":"5011"
61 },
62 {
63 "name":"core12",
64 "port":"5012"
65 },
66 {
67 "name":"core21",
68 "port":"5021"
69 },
70 {
71 "name":"core22",
72 "port":"5022"
73 },
74 {
75 "name":"core31",
76 "port":"5031"
77 },
78 {
79 "name":"core32",
80 "port":"5032"
sslobodr1d1e50b2019-03-14 09:17:40 -040081 },
82 {
83 "name":"roCore1",
84 "port":"5001"
85 },
86 {
87 "name":"roCore2",
88 "port":"5002"
89 },
90 {
91 "name":"roCore3",
92 "port":"5003"
sslobodrd6e07e72019-01-31 16:07:20 -050093 }
sslobodr1d1e50b2019-03-14 09:17:40 -040094 ]
95 }
sslobodrd6e07e72019-01-31 16:07:20 -050096 },
97 "tests":[
98 {
99 "name":"Test CreateDevice",
100 "send": {
101 "client":"client",
102 "method":"CreateDevice",
103 "param":"{Type:\"simulated_olt\"}",
104 "expect":"{Id:\"abcd1234\",Type:\"simulated_olt\"}",
sslobodrd9daabf2019-02-05 13:14:21 -0500105 "_meta":"",
106 "_expectMeta":""
sslobodrd6e07e72019-01-31 16:07:20 -0500107 },
108 "servers": [
109 {
110 "name":"core11",
111 "meta": [
112 {
113 "key":"voltha_serial_number",
114 "value":"0"
115 }
116 ]
117 },
118 {
119 "name":"core12",
120 "meta": [
121 {
122 "key":"voltha_serial_number",
123 "value":"0"
124 }
125 ]
126 }
127 ]
128 },
129 {
130 "name":"Test GetDevice",
131 "send": {
132 "client":"client",
133 "method":"GetDevice",
134 "param":"{Id:\"abcd1234\"}",
135 "expect":"{Id:\"abcd1234\",Type:\"simulated_olt\"}",
sslobodrd9daabf2019-02-05 13:14:21 -0500136 "_meta":"",
137 "_expectMeta":""
sslobodrd6e07e72019-01-31 16:07:20 -0500138 },
139 "servers": [
140 {
141 "name":"core11",
142 "meta": [
143 {
144 "key":"voltha_serial_number",
sslobodrd9daabf2019-02-05 13:14:21 -0500145 "value":"1"
sslobodrd6e07e72019-01-31 16:07:20 -0500146 }
147 ]
148 },
149 {
150 "name":"core12",
151 "meta": [
152 {
153 "key":"voltha_serial_number",
sslobodrd9daabf2019-02-05 13:14:21 -0500154 "value":"1"
155 }
156 ]
157 }
158 ]
159 },
160 {
161 "name":"Test Subscribe",
162 "send": {
163 "client":"client",
164 "method":"Subscribe",
165 "param":"{OfagentId:\"Agent007\"}",
166 "meta": [
167 {
168 "key":"voltha_backend_name",
169 "value":""
170 }
171 ],
172 "expect":"{OfagentId:\"Agent007\",VolthaId:\"core11\"}",
173 "expectMeta": [
174 {
175 "key":"voltha_backend_name",
176 "value":"vcore1"
177 }
178 ]
179 },
180 "servers": [
181 {
182 "name":"core11",
183 "meta": [
184 {
185 "key":"voltha_serial_number",
186 "value":"2"
187 },
188 {
189 "key":"voltha_backend_name",
190 "value":""
sslobodrd6e07e72019-01-31 16:07:20 -0500191 }
192 ]
Kent Hagerman1b9c7062019-05-07 16:46:01 -0400193 },
194 {
195 "name":"core12",
196 "meta": [
197 {
198 "key":"voltha_serial_number",
199 "value":"2"
200 },
201 {
202 "key":"voltha_backend_name",
203 "value":""
204 }
205 ]
sslobodrd6e07e72019-01-31 16:07:20 -0500206 }
207 ]
sslobodr1d1e50b2019-03-14 09:17:40 -0400208 },
209 {
210 "name":"Get goroutine count",
211 "infoOnly":true,
212 "send": {
213 "client":"stats",
214 "method":"GetGoroutineCount",
215 "param":"{}",
216 "meta": [ ],
Kent Hagerman1e9061e2019-05-21 16:01:21 -0400217 "expect":"{Count:43}",
sslobodr1d1e50b2019-03-14 09:17:40 -0400218 "expectMeta": [ ]
219 },
220 "servers": [ ]
sslobodrd6e07e72019-01-31 16:07:20 -0500221 }
222 ]
223}