blob: 444719ce40711f598911100c9550ca3cefed61c6 [file] [log] [blame]
{
"environment":{
"cmdLine":"afrouter -logLevel 1 -config arouter_test.json",
"protoFiles": [
{
"importPath":"github.com/opencord/voltha-protos/v2/go/",
"service":"VolthaService",
"package":"voltha"
},
{
"importPath":"github.com/opencord/voltha-protos/v2/go/",
"service":"Configuration",
"package":"afrouter"
}
],
"Junk": [
{
"importPath":"github.com/opencord/voltha-protos/v2/go/",
"service":"Configuration",
"package":"afrouter"
}
],
"imports": [
"github.com/opencord/voltha-protos/v2/go/common"
],
"protoDesc":"voltha.pb",
"protoSubst": [
{
"from":"google.protobuf.Empty",
"to":"empty.Empty"
}
],
"clients": {
"imports": [
"github.com/golang/protobuf/ptypes/empty",
"github.com/opencord/voltha-protos/v2/go/openflow_13",
"github.com/opencord/voltha-protos/v2/go/common"
],
"endpoints": [
{
"name":"client",
"port":"5000"
},
{
"name":"stats",
"port":"55554"
}
]
},
"servers": {
"imports": [
"github.com/golang/protobuf/ptypes/empty",
"github.com/opencord/voltha-protos/v2/go/openflow_13",
"github.com/opencord/voltha-protos/v2/go/common",
"github.com/opencord/voltha-protos/v2/go/omci"
],
"endpoints": [
{
"name":"core11",
"port":"5011"
},
{
"name":"core12",
"port":"5012"
},
{
"name":"core21",
"port":"5021"
},
{
"name":"core22",
"port":"5022"
},
{
"name":"core31",
"port":"5031"
},
{
"name":"core32",
"port":"5032"
},
{
"name":"roCore1",
"port":"5001"
},
{
"name":"roCore2",
"port":"5002"
},
{
"name":"roCore3",
"port":"5003"
}
]
}
},
"tests":[
{
"name":"Test CreateDevice",
"send": {
"client":"client",
"method":"CreateDevice",
"param":"{Type:\"simulated_olt\"}",
"expect":"{Id:\"abcd1234\",Type:\"simulated_olt\"}",
"_meta":"",
"_expectMeta":""
},
"servers": [
{
"name":"core11",
"meta": [
{
"key":"voltha_serial_number",
"value":"0"
}
]
},
{
"name":"core12",
"meta": [
{
"key":"voltha_serial_number",
"value":"0"
}
]
}
]
},
{
"name":"Test GetDevice",
"send": {
"client":"client",
"method":"GetDevice",
"param":"{Id:\"abcd1234\"}",
"expect":"{Id:\"abcd1234\",Type:\"simulated_olt\"}",
"_meta":"",
"_expectMeta":""
},
"servers": [
{
"name":"core11",
"meta": [
{
"key":"voltha_serial_number",
"value":"1"
}
]
},
{
"name":"core12",
"meta": [
{
"key":"voltha_serial_number",
"value":"1"
}
]
}
]
},
{
"name":"Test Subscribe",
"send": {
"client":"client",
"method":"Subscribe",
"param":"{OfagentId:\"Agent007\"}",
"meta": [
{
"key":"voltha_backend_name",
"value":""
}
],
"expect":"{OfagentId:\"Agent007\",VolthaId:\"core11\"}",
"expectMeta": [
{
"key":"voltha_backend_name",
"value":"vcore1"
}
]
},
"servers": [
{
"name":"core11",
"meta": [
{
"key":"voltha_serial_number",
"value":"2"
},
{
"key":"voltha_backend_name",
"value":""
}
]
},
{
"name":"core12",
"meta": [
{
"key":"voltha_serial_number",
"value":"2"
},
{
"key":"voltha_backend_name",
"value":""
}
]
}
]
},
{
"name":"Get goroutine count",
"infoOnly":true,
"send": {
"client":"stats",
"method":"GetGoroutineCount",
"param":"{}",
"meta": [ ],
"expect":"{Count:43}",
"expectMeta": [ ]
},
"servers": [ ]
}
]
}