blob: 3634f99a22df0acc872b7a1642515b5447ad3204 [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 {
11 "importPath":"github.com/opencord/voltha-go/protos/",
12 "service":"Configuration",
13 "package":"afrouter"
14 }
15 ],
16 "Junk": [
17 {
18 "importPath":"github.com/opencord/voltha-go/protos/",
19 "service":"Configuration",
20 "package":"afrouter"
sslobodrd6e07e72019-01-31 16:07:20 -050021 }
22 ],
23 "imports": [
sslobodrd6e07e72019-01-31 16:07:20 -050024 ],
25 "protoDesc":"voltha.pb",
26 "protoSubst": [
27 {
28 "from":"google.protobuf.Empty",
29 "to":"empty.Empty"
30 }
31 ],
sslobodr1d1e50b2019-03-14 09:17:40 -040032 "clients": {
33 "imports": [
34 "github.com/golang/protobuf/ptypes/empty",
35 "github.com/opencord/voltha-go/protos/openflow_13"
36 ],
37 "endpoints": [
38 {
39 "name":"client",
40 "port":"5000"
41 },
42 {
43 "name":"stats",
44 "port":"55554"
45 }
46 ]
47 },
48 "servers": {
49 "imports": [
50 "github.com/golang/protobuf/ptypes/empty",
51 "github.com/opencord/voltha-go/protos/openflow_13"
52 ],
53 "endpoints": [
sslobodrd6e07e72019-01-31 16:07:20 -050054 {
55 "name":"core11",
56 "port":"5011"
57 },
58 {
59 "name":"core12",
60 "port":"5012"
61 },
62 {
63 "name":"core21",
64 "port":"5021"
65 },
66 {
67 "name":"core22",
68 "port":"5022"
69 },
70 {
71 "name":"core31",
72 "port":"5031"
73 },
74 {
75 "name":"core32",
76 "port":"5032"
sslobodr1d1e50b2019-03-14 09:17:40 -040077 },
78 {
79 "name":"roCore1",
80 "port":"5001"
81 },
82 {
83 "name":"roCore2",
84 "port":"5002"
85 },
86 {
87 "name":"roCore3",
88 "port":"5003"
sslobodrd6e07e72019-01-31 16:07:20 -050089 }
sslobodr1d1e50b2019-03-14 09:17:40 -040090 ]
91 }
sslobodrd6e07e72019-01-31 16:07:20 -050092 },
93 "tests":[
94 {
95 "name":"Test CreateDevice",
96 "send": {
97 "client":"client",
98 "method":"CreateDevice",
99 "param":"{Type:\"simulated_olt\"}",
100 "expect":"{Id:\"abcd1234\",Type:\"simulated_olt\"}",
sslobodrd9daabf2019-02-05 13:14:21 -0500101 "_meta":"",
102 "_expectMeta":""
sslobodrd6e07e72019-01-31 16:07:20 -0500103 },
104 "servers": [
105 {
106 "name":"core11",
107 "meta": [
108 {
109 "key":"voltha_serial_number",
110 "value":"0"
111 }
112 ]
113 },
114 {
115 "name":"core12",
116 "meta": [
117 {
118 "key":"voltha_serial_number",
119 "value":"0"
120 }
121 ]
122 }
123 ]
124 },
125 {
126 "name":"Test GetDevice",
127 "send": {
128 "client":"client",
129 "method":"GetDevice",
130 "param":"{Id:\"abcd1234\"}",
131 "expect":"{Id:\"abcd1234\",Type:\"simulated_olt\"}",
sslobodrd9daabf2019-02-05 13:14:21 -0500132 "_meta":"",
133 "_expectMeta":""
sslobodrd6e07e72019-01-31 16:07:20 -0500134 },
135 "servers": [
136 {
137 "name":"core11",
138 "meta": [
139 {
140 "key":"voltha_serial_number",
sslobodrd9daabf2019-02-05 13:14:21 -0500141 "value":"1"
sslobodrd6e07e72019-01-31 16:07:20 -0500142 }
143 ]
144 },
145 {
146 "name":"core12",
147 "meta": [
148 {
149 "key":"voltha_serial_number",
sslobodrd9daabf2019-02-05 13:14:21 -0500150 "value":"1"
151 }
152 ]
153 }
154 ]
155 },
156 {
157 "name":"Test Subscribe",
158 "send": {
159 "client":"client",
160 "method":"Subscribe",
161 "param":"{OfagentId:\"Agent007\"}",
162 "meta": [
163 {
164 "key":"voltha_backend_name",
165 "value":""
166 }
167 ],
168 "expect":"{OfagentId:\"Agent007\",VolthaId:\"core11\"}",
169 "expectMeta": [
170 {
171 "key":"voltha_backend_name",
172 "value":"vcore1"
173 }
174 ]
175 },
176 "servers": [
177 {
178 "name":"core11",
179 "meta": [
180 {
181 "key":"voltha_serial_number",
182 "value":"2"
183 },
184 {
185 "key":"voltha_backend_name",
186 "value":""
sslobodrd6e07e72019-01-31 16:07:20 -0500187 }
188 ]
189 }
190 ]
sslobodr1d1e50b2019-03-14 09:17:40 -0400191 },
192 {
193 "name":"Get goroutine count",
194 "infoOnly":true,
195 "send": {
196 "client":"stats",
197 "method":"GetGoroutineCount",
198 "param":"{}",
199 "meta": [ ],
200 "expect":"{Count:39}",
201 "expectMeta": [ ]
202 },
203 "servers": [ ]
sslobodrd6e07e72019-01-31 16:07:20 -0500204 }
205 ]
206}