sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 1 | { |
| 2 | "environment":{ |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 3 | "cmdLine":"afrouter -logLevel 1 -config arouter_test.json", |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 4 | "protoFiles": [ |
| 5 | { |
William Kurkian | daa6bb2 | 2019-03-07 12:26:28 -0500 | [diff] [blame] | 6 | "importPath":"github.com/opencord/voltha-protos/go/", |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 7 | "service":"VolthaService", |
| 8 | "package":"voltha" |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 9 | }, |
| 10 | { |
David Bainbridge | 142516e | 2019-04-19 01:34:58 +0000 | [diff] [blame] | 11 | "importPath":"github.com/opencord/voltha-protos/go/", |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 12 | "service":"Configuration", |
| 13 | "package":"afrouter" |
| 14 | } |
| 15 | ], |
| 16 | "Junk": [ |
| 17 | { |
David Bainbridge | 142516e | 2019-04-19 01:34:58 +0000 | [diff] [blame] | 18 | "importPath":"github.com/opencord/voltha-protos/go/", |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 19 | "service":"Configuration", |
| 20 | "package":"afrouter" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 21 | } |
| 22 | ], |
| 23 | "imports": [ |
Kent Hagerman | 1b9c706 | 2019-05-07 16:46:01 -0400 | [diff] [blame] | 24 | "github.com/opencord/voltha-protos/go/common" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 25 | ], |
| 26 | "protoDesc":"voltha.pb", |
| 27 | "protoSubst": [ |
| 28 | { |
| 29 | "from":"google.protobuf.Empty", |
| 30 | "to":"empty.Empty" |
| 31 | } |
| 32 | ], |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 33 | "clients": { |
| 34 | "imports": [ |
Kent Hagerman | 1b9c706 | 2019-05-07 16:46:01 -0400 | [diff] [blame] | 35 | "github.com/golang/protobuf/ptypes/empty", |
| 36 | "github.com/opencord/voltha-protos/go/openflow_13", |
| 37 | "github.com/opencord/voltha-protos/go/common" |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 38 | ], |
| 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 Hagerman | 1b9c706 | 2019-05-07 16:46:01 -0400 | [diff] [blame] | 52 | "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" |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 56 | ], |
| 57 | "endpoints": [ |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 58 | { |
| 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" |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 81 | }, |
| 82 | { |
| 83 | "name":"roCore1", |
| 84 | "port":"5001" |
| 85 | }, |
| 86 | { |
| 87 | "name":"roCore2", |
| 88 | "port":"5002" |
| 89 | }, |
| 90 | { |
| 91 | "name":"roCore3", |
| 92 | "port":"5003" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 93 | } |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 94 | ] |
| 95 | } |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 96 | }, |
| 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\"}", |
sslobodr | d9daabf | 2019-02-05 13:14:21 -0500 | [diff] [blame] | 105 | "_meta":"", |
| 106 | "_expectMeta":"" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 107 | }, |
| 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\"}", |
sslobodr | d9daabf | 2019-02-05 13:14:21 -0500 | [diff] [blame] | 136 | "_meta":"", |
| 137 | "_expectMeta":"" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 138 | }, |
| 139 | "servers": [ |
| 140 | { |
| 141 | "name":"core11", |
| 142 | "meta": [ |
| 143 | { |
| 144 | "key":"voltha_serial_number", |
sslobodr | d9daabf | 2019-02-05 13:14:21 -0500 | [diff] [blame] | 145 | "value":"1" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 146 | } |
| 147 | ] |
| 148 | }, |
| 149 | { |
| 150 | "name":"core12", |
| 151 | "meta": [ |
| 152 | { |
| 153 | "key":"voltha_serial_number", |
sslobodr | d9daabf | 2019-02-05 13:14:21 -0500 | [diff] [blame] | 154 | "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":"" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 191 | } |
| 192 | ] |
Kent Hagerman | 1b9c706 | 2019-05-07 16:46:01 -0400 | [diff] [blame] | 193 | }, |
| 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 | ] |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 206 | } |
| 207 | ] |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 208 | }, |
| 209 | { |
| 210 | "name":"Get goroutine count", |
| 211 | "infoOnly":true, |
| 212 | "send": { |
| 213 | "client":"stats", |
| 214 | "method":"GetGoroutineCount", |
| 215 | "param":"{}", |
| 216 | "meta": [ ], |
Kent Hagerman | 1e9061e | 2019-05-21 16:01:21 -0400 | [diff] [blame] | 217 | "expect":"{Count:43}", |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 218 | "expectMeta": [ ] |
| 219 | }, |
| 220 | "servers": [ ] |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 221 | } |
| 222 | ] |
| 223 | } |