sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 1 | { |
| 2 | "environment":{ |
| 3 | "cmdLine":"afrouter -config arouter_test.json", |
| 4 | "protoFiles": [ |
| 5 | { |
| 6 | "importPath":"github.com/opencord/voltha-go/protos/", |
| 7 | "service":"VolthaService", |
| 8 | "package":"voltha" |
| 9 | } |
| 10 | ], |
| 11 | "imports": [ |
| 12 | "github.com/golang/protobuf/ptypes/empty", |
| 13 | "github.com/opencord/voltha-go/protos/openflow_13" |
| 14 | ], |
| 15 | "protoDesc":"voltha.pb", |
| 16 | "protoSubst": [ |
| 17 | { |
| 18 | "from":"google.protobuf.Empty", |
| 19 | "to":"empty.Empty" |
| 20 | } |
| 21 | ], |
| 22 | "clients": [ |
| 23 | { |
| 24 | "name":"client", |
| 25 | "port":"5000" |
| 26 | } |
| 27 | ], |
| 28 | "servers": [ |
| 29 | { |
| 30 | "name":"core11", |
| 31 | "port":"5011" |
| 32 | }, |
| 33 | { |
| 34 | "name":"core12", |
| 35 | "port":"5012" |
| 36 | }, |
| 37 | { |
| 38 | "name":"core21", |
| 39 | "port":"5021" |
| 40 | }, |
| 41 | { |
| 42 | "name":"core22", |
| 43 | "port":"5022" |
| 44 | }, |
| 45 | { |
| 46 | "name":"core31", |
| 47 | "port":"5031" |
| 48 | }, |
| 49 | { |
| 50 | "name":"core32", |
| 51 | "port":"5032" |
| 52 | } |
| 53 | ] |
| 54 | }, |
| 55 | "tests":[ |
| 56 | { |
| 57 | "name":"Test CreateDevice", |
| 58 | "send": { |
| 59 | "client":"client", |
| 60 | "method":"CreateDevice", |
| 61 | "param":"{Type:\"simulated_olt\"}", |
| 62 | "expect":"{Id:\"abcd1234\",Type:\"simulated_olt\"}", |
sslobodr | d9daabf | 2019-02-05 13:14:21 -0500 | [diff] [blame] | 63 | "_meta":"", |
| 64 | "_expectMeta":"" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 65 | }, |
| 66 | "servers": [ |
| 67 | { |
| 68 | "name":"core11", |
| 69 | "meta": [ |
| 70 | { |
| 71 | "key":"voltha_serial_number", |
| 72 | "value":"0" |
| 73 | } |
| 74 | ] |
| 75 | }, |
| 76 | { |
| 77 | "name":"core12", |
| 78 | "meta": [ |
| 79 | { |
| 80 | "key":"voltha_serial_number", |
| 81 | "value":"0" |
| 82 | } |
| 83 | ] |
| 84 | } |
| 85 | ] |
| 86 | }, |
| 87 | { |
| 88 | "name":"Test GetDevice", |
| 89 | "send": { |
| 90 | "client":"client", |
| 91 | "method":"GetDevice", |
| 92 | "param":"{Id:\"abcd1234\"}", |
| 93 | "expect":"{Id:\"abcd1234\",Type:\"simulated_olt\"}", |
sslobodr | d9daabf | 2019-02-05 13:14:21 -0500 | [diff] [blame] | 94 | "_meta":"", |
| 95 | "_expectMeta":"" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 96 | }, |
| 97 | "servers": [ |
| 98 | { |
| 99 | "name":"core11", |
| 100 | "meta": [ |
| 101 | { |
| 102 | "key":"voltha_serial_number", |
sslobodr | d9daabf | 2019-02-05 13:14:21 -0500 | [diff] [blame] | 103 | "value":"1" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 104 | } |
| 105 | ] |
| 106 | }, |
| 107 | { |
| 108 | "name":"core12", |
| 109 | "meta": [ |
| 110 | { |
| 111 | "key":"voltha_serial_number", |
sslobodr | d9daabf | 2019-02-05 13:14:21 -0500 | [diff] [blame] | 112 | "value":"1" |
| 113 | } |
| 114 | ] |
| 115 | } |
| 116 | ] |
| 117 | }, |
| 118 | { |
| 119 | "name":"Test Subscribe", |
| 120 | "send": { |
| 121 | "client":"client", |
| 122 | "method":"Subscribe", |
| 123 | "param":"{OfagentId:\"Agent007\"}", |
| 124 | "meta": [ |
| 125 | { |
| 126 | "key":"voltha_backend_name", |
| 127 | "value":"" |
| 128 | } |
| 129 | ], |
| 130 | "expect":"{OfagentId:\"Agent007\",VolthaId:\"core11\"}", |
| 131 | "expectMeta": [ |
| 132 | { |
| 133 | "key":"voltha_backend_name", |
| 134 | "value":"vcore1" |
| 135 | } |
| 136 | ] |
| 137 | }, |
| 138 | "servers": [ |
| 139 | { |
| 140 | "name":"core11", |
| 141 | "meta": [ |
| 142 | { |
| 143 | "key":"voltha_serial_number", |
| 144 | "value":"2" |
| 145 | }, |
| 146 | { |
| 147 | "key":"voltha_backend_name", |
| 148 | "value":"" |
sslobodr | d6e07e7 | 2019-01-31 16:07:20 -0500 | [diff] [blame] | 149 | } |
| 150 | ] |
| 151 | } |
| 152 | ] |
| 153 | } |
| 154 | ] |
| 155 | } |