blob: a6791a0fef1424ae9acc71c50c3a88f097da4a17 [file] [log] [blame]
sslobodrd6e07e72019-01-31 16:07:20 -05001{
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\"}",
63 "_meta":""
64 },
65 "servers": [
66 {
67 "name":"core11",
68 "meta": [
69 {
70 "key":"voltha_serial_number",
71 "value":"0"
72 }
73 ]
74 },
75 {
76 "name":"core12",
77 "meta": [
78 {
79 "key":"voltha_serial_number",
80 "value":"0"
81 }
82 ]
83 }
84 ]
85 },
86 {
87 "name":"Test GetDevice",
88 "send": {
89 "client":"client",
90 "method":"GetDevice",
91 "param":"{Id:\"abcd1234\"}",
92 "expect":"{Id:\"abcd1234\",Type:\"simulated_olt\"}",
93 "_meta":""
94 },
95 "servers": [
96 {
97 "name":"core11",
98 "meta": [
99 {
100 "key":"voltha_serial_number",
101 "value":"0"
102 }
103 ]
104 },
105 {
106 "name":"core12",
107 "meta": [
108 {
109 "key":"voltha_serial_number",
110 "value":"0"
111 }
112 ]
113 }
114 ]
115 }
116 ]
117}