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 | { |
| 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" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 21 | } |
| 22 | ], |
| 23 | "imports": [ |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 24 | ], |
| 25 | "protoDesc":"voltha.pb", |
| 26 | "protoSubst": [ |
| 27 | { |
| 28 | "from":"google.protobuf.Empty", |
| 29 | "to":"empty.Empty" |
| 30 | } |
| 31 | ], |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 32 | "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": [ |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 54 | { |
| 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" |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 77 | }, |
| 78 | { |
| 79 | "name":"roCore1", |
| 80 | "port":"5001" |
| 81 | }, |
| 82 | { |
| 83 | "name":"roCore2", |
| 84 | "port":"5002" |
| 85 | }, |
| 86 | { |
| 87 | "name":"roCore3", |
| 88 | "port":"5003" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 89 | } |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 90 | ] |
| 91 | } |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 92 | }, |
| 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\"}", |
sslobodr | d9daabf | 2019-02-05 13:14:21 -0500 | [diff] [blame] | 101 | "_meta":"", |
| 102 | "_expectMeta":"" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 103 | }, |
| 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\"}", |
sslobodr | d9daabf | 2019-02-05 13:14:21 -0500 | [diff] [blame] | 132 | "_meta":"", |
| 133 | "_expectMeta":"" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 134 | }, |
| 135 | "servers": [ |
| 136 | { |
| 137 | "name":"core11", |
| 138 | "meta": [ |
| 139 | { |
| 140 | "key":"voltha_serial_number", |
sslobodr | d9daabf | 2019-02-05 13:14:21 -0500 | [diff] [blame] | 141 | "value":"1" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 142 | } |
| 143 | ] |
| 144 | }, |
| 145 | { |
| 146 | "name":"core12", |
| 147 | "meta": [ |
| 148 | { |
| 149 | "key":"voltha_serial_number", |
sslobodr | d9daabf | 2019-02-05 13:14:21 -0500 | [diff] [blame] | 150 | "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":"" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 187 | } |
| 188 | ] |
| 189 | } |
| 190 | ] |
sslobodr | 1d1e50b | 2019-03-14 09:17:40 -0400 | [diff] [blame] | 191 | }, |
| 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": [ ] |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 204 | } |
| 205 | ] |
| 206 | } |